Difference between revisions of "If"

Jump to navigation Jump to search
437 bytes added ,  00:06, 24 February 2008
imported>TheImperialDragon
(Minor note about <> and >< in scripting)
imported>Wrye
Line 124: Line 124:
  IF IsActor != 0 && Flag != 0
  IF IsActor != 0 && Flag != 0


== Assignment ==
The result of logical expressions can be saved to variables just like the results of mathematical expressions. E.g. you can do this:
set bResult to c == -3 && b == 20
set bTest to c == -3 && b == 20 && a == 17
You can use this to '''invert a logical value''':
set bValue to ( bValue == 0 )
If bValue is intially 1 (True), then it will be reset to 0 (False). Or if initially 0 (False), it will be reset to 1 (True).


== Notes ==
== Notes ==
Anonymous user

Navigation menu