mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +00:00
Update red.html.markdown
This commit is contained in:
parent
63ab96e72a
commit
7522161aec
@ -129,8 +129,8 @@ i1 / i2 ; result 0 (0.5, but truncated towards 0)
|
|||||||
; Control Structures
|
; Control Structures
|
||||||
;
|
;
|
||||||
; if
|
; if
|
||||||
; Evaluate a block of code if a given condition is true. IF does not return
|
; Evaluate a block of code if a given condition is true. IF returns
|
||||||
; any value, so cannot be used in an expression.
|
; the resulting value of the block or 'none' if the condition was false.
|
||||||
if a < 0 [print "a is negative"]
|
if a < 0 [print "a is negative"]
|
||||||
|
|
||||||
; either
|
; either
|
||||||
|
Loading…
Reference in New Issue
Block a user