I have a loop for in a mod file over a number countries and I would like to introduce a if with an argument depending on the country "c" but I have an error.
Relevant lines of the code will make my question clearer:
- Code: Select all
@#define countries 1:2
...
...
model;
@#for c in countries
...
...
@#if rho_@{c} !=0 %(rho_@{c} is a parameter)
...
@#else
...
@#endif
...
...
@#endfor
end;
I've got the following error message:
"ERROR in macro-processor:....: Unknown variable: rho_"
It seems that @{c} is not taken into account in the argument of the if.
Do you know where the error comes from?
Thanks in advance,
L.