The 'for' statement crashes when the loop expression contains a variable call, for example:
for (y=0; {y} < {_DESKTOP_HEIGHT}; y={y}+{deltay}) {
}
The console shows an exception:
com.tplan.robot.scripting.SyntaxErrorException: Invalid variable declaration. Correct format is 'Var <name>=<value> [<name>=<value> ... <name>=<value>]'.
at com.tplan.robot.scripting.commands.impl.VariableCommand.validate(VariableCommand.java:65)
at com.tplan.robot.scripting.commands.impl.VariableCommand.execute(VariableCommand.java:94)
at com.tplan.robot.scripting.wrappers.ForWrapper.updateForVariable(ForWrapper.java:155)
at com.tplan.robot.scripting.wrappers.ForWrapper.shouldExitWrapperOnThisElement(ForWrapper.java:199)
Fixed and committed to CVS. Targeting for 2.0.2.