Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,4 +1,5 @@
Show how to represent the boolean states "true" and "false" in a language. If other objects represent "true" or "false" in conditionals, note it.
Show how to represent the boolean states "true" and "false" in a language.
If other objects represent "true" or "false" in conditionals, note it.
;Cf.
* [[Logical operations]]

View file

@ -1,2 +1,4 @@
---
category:
- Simple
note: Basic language learning

View file

@ -0,0 +1,6 @@
VAR
a,b,c: BOOLEAN;
...
a := TRUE;
b := FALSE;
c := 1 > 2;

View file

@ -0,0 +1,3 @@
Declare x bit(1);
x='1'b; /* True */
x='0'b; /* False */

View file

@ -0,0 +1,11 @@
*process source attributes xref macro or(!);
tf: proc options(main);
%Dcl true char; %true='''1''b';
%Dcl false char; %false='''0''b';
If true Then
Put Skip list('That''s true');
If false Then
Put Skip List('ERROR');
Else
Put Skip List('false was recognized');
End;

View file

@ -1 +0,0 @@
true is '1'b and false is '0'b

View file

@ -0,0 +1,5 @@
if "foo"
echo "true"
else
echo "false"
endif