|
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
Posted: Fri Mar 02, 2007 1:11 pm
Do zmud has a function which can watch an event or variable? |
Just as the topic said. I want to watch a variable, for instance: @jump_flag. I have to write: #while (@jump_flag <> "success") {#wa 100}. But if there are some mistake during the program, there will be a lot of waiting thread. It's really unconvenience.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Mar 02, 2007 1:53 pm |
The only other way I know to do that is just to check periodically with an #alarm or on something regular like your prompt.
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Fri Mar 02, 2007 2:21 pm |
Or use an expression trigger perhaps?
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
Posted: Fri Mar 02, 2007 5:00 pm |
Thanks a lot!
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Mar 02, 2007 9:57 pm |
If this is for debugging purposes and not actual script performance, you can use the #WATCH command.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|