Using variable in GoTo>

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
99miles

Using variable in GoTo>

Post by 99miles » Wed May 28, 2003 6:45 pm

Hello-
I am trying to use a variable in a GoTo>
Such as:
GoTo>%myLabel%
or:
If>myVar=thisValue,%myLabel%

It has worked a couple times, but I can't get it to work now, and I can't figure out what the difference is/was. Does anyone have any experience with this?
Thanks!-
Mac

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu May 29, 2003 12:44 am

Hi Mac.....try this.....

Label>Start
Input>Section, 1 or 2 or 3
If>%Section%>3,Start
If>%Section%%Section%

Label>1
MessageModal>This is section ONE
Goto>End

Label>2
MessageModal>This is section TWO
Goto>End

Label>3
MessageModal>This is section THREE
Goto>End

Label>End
Ask>Do you want to try again ?,Continue
If>%Continue%=YES,Start
Hope this helps.....
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts