2.5.2 Extended LOGIC BScript Commands
These are logic commands you can use in the terminal programs. They are not autocontrol script commands, but actual program commands. They can be used when typing in commands via the command textbox too, but you have to type in a complete REPEAT loop code (start with REPEAT and end with UNTIL) all on one line separated by commas. Programs loaded in from files are what it is primarily designed for though.
REPEAT (starts a repeat cycle or loop)
UNTIL= ### (ends loop or repeats it again based on comparison of equal)
UNTIL< ### (ends loop or repeats it again based on comparison of less than)
UNTIL> ### (ends loop or repeats it again based on comparison of greater than)
UNTILR ###:### (ends loop or repeats it again based on comparison of range values. Low value and high value separated by :)
UNTILM ### (ends loop when comparison value ANDed with BitMask equal value)
Be default the repeat loop uses its own counter (kind of like a FOR NEXT loop) unless a math value is designated.
To designate a math comparison use the commands just after a command whose reply you want to compare in the UNTIL Logic command:
RSAVE1
RSAVE2
RSAVE3
RSAVE4
These commands save the last reply value of the last command executed in a math comparison variable. The reason there are four save commands is if the reply value is like this:
1000:2000:3000:2000
which some commands can return (ie. EP) you can save any one of the values based on the index. In this case:
RSAVE1 would save a value of 1000
RSAVE2 would save a value of 2000
RSAVE3 would save a value of 3000
RSAVE4 would save a value of 2000
Now when the UNTIL command is executed, it uses this saved math value instead of the loop counter for the comparison.
You can nest up to 3 levels deep of repeat loops.