What am I doing wrong here? The following script never executes the contents of the ELSE statement?
LET DELAY_TIME=1
LABEL SCAN
IF DELAY_TIME(is less than)6
LET DELAY_TIME=DELAY_TIME+1
ELSE
MessageModal>RESETTING DELAY TIME.
LET DELAY_TIME=0
ENDIF
GOTO SCAN
Of course, the (is less than) is really the left arrow symbol, but when I try to use it in this forum the message format gets botched.
Please help - Tom
Incrementing Numeric Variable
Moderators: JRL, Dorian (MJT support)
Incrementing Numeric Variable
Last edited by tpreston on Sat Mar 07, 2009 7:28 pm, edited 10 times in total.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Try this:
Disable the HTML on the postings to enable the "" chars
Code: Select all
LET>DELAY_TIME=1
LABEL>SCAN
IF>%DELAY_TIME%<6
LET>DELAY_TIME=%DELAY_TIME%+1
ELSE
MessageModal>RESETTING DELAY TIME.
LET>DELAY_TIME=0
ENDIF
GOTO>SCAN
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!