Singular Manual: boolean operations

| ### 4.7.6 boolean operations `and` logical `and`, may also be written as `&&` `or` logical `or`, may also be written as `||` `not` logical `not`, may also be written as `!` The precedence of the boolean operations is: parentheses comparisons not and or Example:
      (1>2) and 3;
    ==> 0
      1 > 2 and 3;
    ==> 0
      ! 0 or 1;
    ==> 1
      !(0 or 1);
    ==> 0

User manual for Singular version 4.4.1, 2025, generated by texi2html.