anchor.diff:  :#   2020-01-13 JFL Added routine :is_newer.                                  #
   :#   2020-02-14 JFL Added routines :is_empty_dir, :has_files, :has_dirs,      #
   :#		    :test_errorlevel                                          #
  +:#   2020-03-13 JFL Added routines :EchoVal[.Debug] and macros %ECHOVAL[.D]%. #
   :#		                                                              #
   :#          Copyright 2016 Hewlett Packard Enterprise Development LP         #
   :# Licensed under the Apache 2.0 license  www.apache.org/licenses/LICENSE-2.0 #
  
positive.code: :#                  %ECHOSVARS%	    Echo ARG1 before each variable.           #
  :#                  %ECHOSVARS.V%   Idem, but display them in verb. mode only #
  :#                  %ECHOSVARS.D%   Idem, but display them in debug mode only #
  :#                                                                            #
  :#                  %IF_DEBUG%      Execute a command in debug mode only      #
  :#                  %IF_VERBOSE%    Execute a command in verbose mode only    #
  
negative.code: %>DEBUGOUT% echo %INDENT%set "ARG%N%=%1"
  shift
  goto EchoArgs.loop
  
  :# Echo the value of a variable
  :EchoVal	%1=VARNAME
  setlocal EnableExtensions EnableDelayedExpansion
  %>DEBUGOUT% echo.%INDENT%!%~1!
  if defined LOGFILE %>>LOGFILE% echo %INDENT%!%~1!
  endlocal & exit /b
  
  :EchoVal.Debug
  %IF_DEBUG% (
    call :EchoVal %*
  ) else ( :# Make sure the variables are logged
    call :EchoVal %* >NUL 2>NUL
  )
  exit /b
  
  :EchoVal.Verbose
  %IF_VERBOSE% (
    call :EchoVal %*
  ) else ( :# Make sure the variables are logged
    call :EchoVal %* >NUL 2>NUL
  )
  exit /b
  
  :Debug.End
  
  