EVAL
From 4Dimensions
Revision as of 04:00, 26 January 2016 by Isibot (talk | contribs) (Bot: Automated import of articles)
EVAL
EVAL
EVAL
EVAL
Usage: eval <variable> <expression>
- this example immediately evaluates the expression below and stores the result
- in %result%:
eval result %self.hitp% * 100 / %self.maxhitp% say My hitpoint percentage is %result%
- this result will not change after the evaluation even if %self.hitp% changes.
The eval command is used to set (or create) the specified variable equal to
the result of the immediate evaluation of the provided expression. There also
exists a "set" command, with the same syntax. Set differs in that the expression
is not evaluated until the variable is accessed.
See Also: TRIG-SET