Inside my script I have
!echo "NAME is ${NAME}"
${If} ${NAME} == "X"
!echo "B"
${EndIf}
I parsed the /DNAME=A on the command line.
Output:
NAME is A
B
I didn't expect to see the B in the output, what is wrong with my syntax?
Conditional if else on command line parameters
2 posts
You're mixing up compiletime and runtime commands.
!echo is a compiletime command, and LogicLib is runtime.
!echo is a compiletime command, and LogicLib is runtime.