Difference between revisions of "Statement Reference"

165 bytes added ,  04:08, 8 February 2018
→‎If Statement: added another example
imported>Chesko
(Discovered a major foot-gun related to While loops and variable lifetime. Documenting it here.)
imported>Rasikko
(→‎If Statement: added another example)
Line 100: Line 100:
   x = 0
   x = 0
endIf
endIf
</source>
<br>
<source lang="papyrus">
; if the sum of x and y is less than 10, set z to 1, otherwise set z to -1.
if ((x + y) < 10)
    z = 1
else
    z = -1
endif
</source>
</source>


Anonymous user