IF statement inside SRT(SubRoutines)

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
SDG

IF statement inside SRT(SubRoutines)

Post by SDG » Tue Nov 19, 2002 11:24 pm

I can't seem to see a Label> in our outside of a subroutine. So if I use a IF> statement and try to call a label inside a SRT it gives me an error every time.

Can I call another SRT from an IF statement? what's the trick?


Thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 20, 2002 6:22 pm

Hi,

Yes, you can have Labels, Gotos and Ifs inside subroutines, and I don't know of any issues with this. I have macros that do this. Can even jump out and into subroutines.

Perhaps there is something amiss with your specific script - feel free to send it to [email protected] for a checkover.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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