Hi,
Apparent math bugQuest evaluates this wrongly: <elemTot; (%Map_X_Max% - %Map_X_Min% + 1) * (%Map_Y_Max% - %Map_Y_Min% + 1)>
Quest evaluates this correctly: <elemTot; (1 + %Map_X_Max% - %Map_X_Min%) * (1 + %Map_Y_Max% - %Map_Y_Min%)>
Using value 32 in the variables should give 1024 but the first version gives 900.
Question about for loopsThe following appears not to execute, though no error is generated. Debug shows that elemTot has a value of 1024.
for <elemPtr; 1; elemTot> {
set string <Map_Locn[elemPtr]; TEST-VALUE>
msg <Element %elemPtr% is #Map_Locn[elemPtr]#>
}
What I am dong wrong? Sample code attached.
Thanks, Verbojuice