Extend your language: Difference between revisions
→{{header|langur}}
m (→{{header|Wren}}: Changed to Wren S/H) |
Langurmonkey (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2,007:
=={{header|langur}}==
Langur doesn't
We could use the nxor (logical equivalence) operator to test truthiness.
<syntaxhighlight lang="langur">
case true: ... # both true
case true, false: ... # first true, second false
Line 2,020:
To test directly for Boolean values (not truthiness), we could use the default == comparison.
<syntaxhighlight lang="langur">
case true: ... # both true
case true, false: ... # first true, second false
case false, true: ... # first false, second true
case null, _: ... # first null
default: ... # other
}</syntaxhighlight>
|