X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fboolean.c;h=aee578c514ecff1c3823044513809acf27ac65d1;hb=8db501a078e67a152fc186cbee4ab168170b844e;hp=1b5f1e2293e946a8018ab8146ff0b124a630a767;hpb=420bb7716ee099d369582836ef4fc8ab25d81fde;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) ); }