// test conditions with a single boolean operand if !1==1 then println "!1==1"; fi; if !1==2 then println "!1==2"; fi; if 1==1 & 2==2 then println "1==1 & 2==2"; fi; if 1!=1 & 2==2 then println "1!=1 & 2==2"; fi; if 1==1 & 2!=2 then println "1==1 & 2!=2"; fi; if 1!=1 & 2!=2 then println "1!=1 & 2!=2"; fi; if 1==1 | 2==2 then println "1==1 | 2==2"; fi; if 1!=1 | 2==2 then println "1!=1 | 2==2"; fi; if 1==1 | 2!=2 then println "1==1 | 2!=2"; fi; if 1!=1 | 2!=2 then println "1!=1 | 2!=2"; fi; // Test conditions with the same operator repeated if !! 1==1 then println "!!1==1"; fi; if !! 1==2 then println "!!2==1"; fi; if !!! 1==1 then println "!!!1==1"; fi; if !!! 1==2 then println "!!!2==1"; fi; if 1==1 & 2==2 & 3==3 & 4==4 & 5==5 then println "long and works"; fi; if 0==1 | 0==2 | 0==3 | 0==4 | 5==5 then println "long or works"; fi; // Test combining different Boolean operators if 1==1 & (0==2 | !(3==3 & !0==4) | !0==5) then println "values properly returned"; fi;