Boolean with AND |&&



Testing boolean with AND operator (aka &&)
Smart pascal source code
var i: Integer; b: Boolean := true; BEGIN { BOOLEAN with AND } Writeln(b and b); Writeln(b and true); Writeln(b and false); Writeln(true and b); Writeln(false and b); b := false; Writeln(b and b); Writeln(b and true); Writeln(b and false); Writeln(true and b); Writeln(false and b); { CONSOLE OUTPUTS True True False True False False False False False False }