Logical operations: Difference between revisions

Logical operations en Asymptote
(Logical operations en Verilog)
(Logical operations en Asymptote)
Line 454:
a OR b = true
NOT a = false</pre>
 
=={{header|Asymptote}}==
<lang Asymptote>bool a = true;
bool b = false;
 
write(a & b);
write(a && b); //(with conditional evaluation of right-hand argument)
write(a | b);
write(a || b); //(with conditional evaluation of right-hand argument)
write(a ^ b);
write(!a);</lang>
 
=={{header|AutoHotkey}}==
2,130

edits