Can one do an "if" statement in maxl?
Hello,
Can one do an "if" statement in maxl, and what is the syntax?
I am trying the following, where $9 is a value passed in from the bat script. I know the execute calculation part works, because it runs when I do not have the "if".
if $9=="AUS" execute calculation $11.$12.FDMmvAPC with runtimesubvars "'FDM_Period=\"$6\";FDM_Year=\"$7\";FDM_Forecast=\"$8\";'";
When $9 is 657 for example, I get the following error:
MAXL> if 657=="AUS" execute calculation PLAN.GM.FDMmvAPC with runtimesubvars "'FDM_Period=\"Jul\";FDM_Year=\"FY19\";FDM_Forecast=\"Forecast_Aug\";'";
ERROR - 1242021 - (1) Syntax error near ['if'].
Thank you, Kevin