Eval

From the Oblivion ConstructionSet Wiki
Revision as of 11:59, 6 July 2013 by imported>QQuix (Created page with "{{Function | origin = OBSE | summary = Eval is used within if statements to test the value of an expression. This allows OBSE expressions to be used as conditions. The expre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(bool) Eval expression

Eval is used within if statements to test the value of an expression. This allows OBSE expressions to be used as conditions. The expression must evaluate to a boolean value.


Example

if eval (array[0] > 1)
   ; code executes if array[0] > 1
endif

See also

IF