diff options
| author | Divay Prakash <divayprakash@users.noreply.github.com> | 2018-12-01 09:54:53 +0530 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-01 09:54:53 +0530 | 
| commit | 3fa5983bdb0bd740e21edb3eff8e75f8fe05ed38 (patch) | |
| tree | 0ef96429b8e51b81122f021bb66ff9b0f9dfbe92 | |
| parent | d77dcb85609dd9986e4290a0648390e282c1d680 (diff) | |
| parent | 7522161aecbca946c15127cb0dd7d556a4a48f33 (diff) | |
Merge pull request #3409 from hoodiecrow/patch-1
[red/en] Update red.html.markdown
| -rw-r--r-- | red.html.markdown | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/red.html.markdown b/red.html.markdown index 73baf462..74538bd7 100644 --- a/red.html.markdown +++ b/red.html.markdown @@ -114,12 +114,12 @@ i2 * i1 ; result 2  i1 / i2 ; result 0 (0.5, but truncated towards 0)  ; Comparison operators are probably familiar, and unlike in other languages -; you only need a single '=' sign for comparison. +; you only need a single '=' sign for comparison. Inequality is '<>' like in Pascal.  ; There is a boolean like type in Red. It has values true and false, but also  ; the values on/off or yes/no can be used  3 = 2 ; result false -3 != 2 ; result true +3 <> 2 ; result true  3 > 2 ; result true  3 < 2 ; result false  2 <= 2 ; result true @@ -129,8 +129,8 @@ i1 / i2 ; result 0 (0.5, but truncated towards 0)  ; Control Structures  ;  ; if -; Evaluate a block of code if a given condition is true. IF does not return -; any value, so cannot be used in an expression. +; Evaluate a block of code if a given condition is true. IF returns +; the resulting value of the block or 'none' if the condition was false.  if a < 0 [print "a is negative"]  ; either @@ -165,7 +165,7 @@ print ["a is " msg lf]  ; until  ; Loop over a block of code until the condition at end of block, is met. -; UNTIL does not return any value, so it cannot be used in an expression. +; UNTIL always returns the 'true' value from the final evaluation of the last expression.  c: 5  until [     prin "o" | 
