Logical operations: Difference between revisions
→{{header|langur}}
(PascalABC.NET) |
Langurmonkey (talk | contribs) |
||
Line 2,250:
Operators that end with ? are null propagating or "database" operators, and will return null if either operand is null. They short-circuit differently than normal operators (only if the left operand is null).
<syntaxhighlight lang="langur">
val test = fn(a, b) {
join("\n", [
"not {{
"{{
"{{
"{{
"{{
"{{
"{{
"",
"not? {{
"{{
"{{
"{{
"{{
"{{
"{{
"\n",
])
}
val
[true, false],
[false, true],
Line 2,286 ⟶ 2,287:
]
for
write
}
{{out}}
|