macrovariable passed on the command line (-D option)
It works for numerical values but not for strings.
In the test.mod file:
@#if var1 == "a" @#echo "OK" @#else @#echo "NO" @#endif
Calling dynare test -Dvar1=a
will fail with with unknown variable a
(without any Dynare instruction, it is normal that test.mod fails at the end, but with an error message about unexpected $end)