+
2
|
list
|
skin
|
login
|
editor
α-wwwiki
::
booleans
user:none
(1106 bytes)
_h1 about booleans {pre °°{> 1 2}°° -> {> 1 2} °°{> 2 1}°° -> {> 2 1} °°{< 1 2}°° -> {< 1 2} °°{< 2 1}°° -> {< 2 1} °°{= 1 2}°° -> {= 1 2} °°{= 1 1}°° -> {= 1 1} °°{= 1.00000 1.00000}°° -> {= 1.00000 1.00000} °°{= 1.00000 1.0}°° -> {= 1.00000 1.0} °°{= {/ 1 2} 0.5}°° -> {= {/ 1 2} 0.5} } _h3 if Note : escaping braces is not mandatory but prevents the "false" term to be evaluated. {pre °°{if {< 1 2} then ••{+ 1 2}•• else ••{- 1 2}•• }°° -> {if {< 1 2} then °°{+ 1 2}°° else °°{- 1 2}°°} °°{if {> 1 2} then ••{+ 1 2}•• else ••{- 1 2}•• }°° -> {if {> 1 2} then °°{+ 1 2}°° else °°{- 1 2}°°} °°{if true then ••{+ 1 2 3 4 5 6}•• else ••{* 1 2 3 4 5 6}•• }°° -> {if true then °°{+ 1 2 3 4 5 6}°° else °°{* 1 2 3 4 5 6}°°} °°{if false then ••{+ 1 2 3 4 5 6}•• else ••{* 1 2 3 4 5 6}•• }°° -> {if false then °°{+ 1 2 3 4 5 6}°° else °°{* 1 2 3 4 5 6}°°} }