Logical operations: Difference between revisions
Content deleted Content added
imported>Brie Add Nu |
m →{{header|Wren}}: Changed to Wren S/H |
||
Line 4,278: | Line 4,278: | ||
However, it does support the short-circuiting ''&&'' and ''||'' logical operators as well as the conditional (or ternary) operator ''?:'' all of which behave as expected. |
However, it does support the short-circuiting ''&&'' and ''||'' logical operators as well as the conditional (or ternary) operator ''?:'' all of which behave as expected. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var f = Fn.new { |a, b| |
||
System.print("a = %(a)") |
System.print("a = %(a)") |
||
System.print("b = %(b)") |
System.print("b = %(b)") |