|
snoogans Novice
Joined: 28 Oct 2001 Posts: 43 Location: USA
|
Posted: Sat May 24, 2003 1:31 pm
Simple Question ... i hope |
Okay im wanting to figure out how i can have zmud execute a certain command the number of times that is stored in a variable. I.E. if @var is equal to 6 i want to execute a command 6 times how can i check to see that @var equals and make it do the command that many times?
--
BoBB |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat May 24, 2003 2:55 pm |
#<@var> command
#EXEC #@var command
#LOOP @var {command}
#WHILE (@var > 0) {#ADD var -1;command}
#UNTIL (@var = 0) {#ADD var -1;command}
You could probably think of others if you tried.
LightBulb
Advanced Member |
|
|
|
snoogans Novice
Joined: 28 Oct 2001 Posts: 43 Location: USA
|
Posted: Sun May 25, 2003 12:01 am |
Thanks! I knew there would be some easy way to parse the variable after # :)
--
BoBB |
|
|
|
|
|