Boolean values: Difference between revisions

m
→‎[[Boolean values#ALGOL 68]]: Note: The STRING REPResentation of FALSE and TRUE are defined by the variables ''flop'' and ''flip'' respectively.
m (→‎[[Boolean values#ALGOL 68]]: add the BYTES type.)
m (→‎[[Boolean values#ALGOL 68]]: Note: The STRING REPResentation of FALSE and TRUE are defined by the variables ''flop'' and ''flip'' respectively.)
Line 33:
print((((val | "TRUE" | "FALSE" ), ": ", val, or, (val|flip|flop), new line)));
print((" void: ", " => ", (void|(VOID):FALSE|TRUE), new line));
print((" ref: ", " => ", ref ISNT REF STRING(NIL), new line));
print((" int: ", int , " => ", int /= 0, new line));
print((" real: ", real , " => ", real /= 0, new line));
Line 49:
Output:
<pre>
 
 
FALSE: F or F
void: => F
ref: => F
int: +0 => F
real: +0.00000000000000e +0 => F
Line 61 ⟶ 63:
 
TRUE: T or T
void: => T
ref: => T
int: +1 => T
real: +1.00000000000000e +0 => T
Line 72 ⟶ 74:
 
</pre>
Note: The STRING REPResentation of FALSE and TRUE are defined by the variables ''flop'' and ''flip'' respectively.
 
=={{header|AWK}}==