lists work again
[svn/Cll1h/.git] / demos / boolean.c
index 838e31c44789501a0058e74167b13f1913c72e57..aee578c514ecff1c3823044513809acf27ac65d1 100644 (file)
@@ -2,10 +2,13 @@
 
 program
 {
- boolean t=TRUE,f=FALSE;
- printf("TRUE and FALSE = %s", bool_str(t and f) );
- printf(",TRUE or FALSE = %s", bool_str(t or f) );
- printf(",not FALSE = %s", bool_str(not f) );
- printf(",not TRUE = %s\n", bool_str(not t) );
+ 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) );
 }
This page took 0.124687 seconds and 4 git commands to generate.