X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fboolean.c;h=aee578c514ecff1c3823044513809acf27ac65d1;hb=24c437c23acf5f85395a582327ebbb07ee4b1a98;hp=1b5f1e2293e946a8018ab8146ff0b124a630a767;hpb=283bc4971907f85920dde9f545b3eb8fd3884a79;p=svn%2FCll1h%2F.git diff --git a/demos/boolean.c b/demos/boolean.c index 1b5f1e2..aee578c 100644 --- a/demos/boolean.c +++ b/demos/boolean.c @@ -2,10 +2,13 @@ program { - boolean t=TRUE,f=FALSE; + boolean t = TRUE, f = FALSE, m = MAYBE; print("TRUE and FALSE = ", bool_str(t and f) ); print("TRUE or FALSE = ", bool_str(t or f) ); + print("TRUE and MAYBE = ", bool_str(t and m) ); + print("FALSE or MAYBE = ", bool_str(t or m) ); print("not FALSE = ", bool_str(not f) ); print("not TRUE = ", bool_str(not t) ); + print("not MAYBE = ", bool_str(not m) ); }