|
Ayclaes Newbie
Joined: 31 Mar 2005 Posts: 9
|
Posted: Thu Nov 17, 2005 10:32 pm
Problem with Variable assignment |
Hopefully a quick question:
#IF (@current_delay = 0) {
#ADD current_delay [%1+1]
LA_delay = [%1+1]
} {current_delay = [@current_delay+%1+1]
LA_delay = [@current_delay+%1+1]
}
LA_delay =%1+1 won't evaluate. I added [] and it evaluates the expression. ZMud gives me a syntax error but it does work. How else can I evaluate this expression? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Nov 17, 2005 11:15 pm |
%eval()
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Ayclaes Newbie
Joined: 31 Mar 2005 Posts: 9
|
Posted: Mon Nov 21, 2005 10:56 pm |
Excellent, thanks. I'm not sure how I forgot to try that.
|
|
|
|
|
|