|
robert Wanderer
Joined: 25 Feb 2004 Posts: 98
|
Posted: Mon Dec 13, 2010 4:13 am
[3.32] Not parsing function return result. |
In previous versions of CMUD when I would call %item( @aliases, @aliasesindex) in an alias, the results would also be parsed such that the returned alias would also be called. This seems to no longer be the case. Is there a way to make sure the returned alias is called?
Thanks! |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 13, 2010 4:49 am |
You can use #EXECUTE. It really depends on how your using that code snippet, remember that in CMUD a line should not begin with a function call.
|
|
_________________ Asati di tempari! |
|
|
|
robert Wanderer
Joined: 25 Feb 2004 Posts: 98
|
Posted: Mon Dec 13, 2010 3:04 pm |
Ah, #EXECUTE. I will try that. Thanks Tech! :)
So a bit more details on what I was doing.
1. Create list of aliases that enable a bunch of triggers and variables, and is basically like a state.
2. When the state is done, set the next aliasesindex to execute the next desired state(normally just incr), and then call the alias which does the %item call.
3. Epected result is the next alias in the list is executed which setups up it's set of triggers and variables and waits till it is done, etc.
Sorry about posting in the Beta Forum. I was checking it to see if other people had this issue, but then forgot to go back to the general forum. :( |
|
|
|
robert Wanderer
Joined: 25 Feb 2004 Posts: 98
|
Posted: Mon Dec 13, 2010 3:14 pm |
Verified, #EXECUTE did what I was looking for! :)
Thanks again Tech. |
|
|
|
|
|