#187: macrovariable passed on the command line (-D option) --------------------------+------------------------------------------------- Reporter: michel | Owner: sebastien Type: bug | Status: new Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- 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)