Logical operations: Difference between revisions

→‎{{header|Lasso}}: adding Lasso boolean operations
(→‎{{header|Lasso}}: adding Lasso boolean operations)
Line 761:
print("NOT a: " + (!a));
}</lang>
 
=={{header|Lasso}}==
<lang Lasso>// br is just for formatting output here
define br => '\r'
 
// define vars
local(a = true, b = false)
 
// boolean comparators.
// note, not including comparison operators which would return boolean results
'a AND b: ' + (#a && #b)
br
'a OR b: ' + (#a || #b)
br
'NOT a: ' + !#a
br
'NOT a (using not): ' + not #a</lang>
 
=={{header|Liberty BASIC}}==
140

edits