This commit is contained in:
Ingy döt Net 2013-10-27 22:24:23 +00:00
parent 6f050a029e
commit 776bba907c
3887 changed files with 59894 additions and 7280 deletions

View file

@ -0,0 +1,3 @@
? 2 = 3
? 2 = 2
IF 7 THEN ?"HELLO"

View file

@ -0,0 +1 @@
01 some-bool PIC 1 BIT.

View file

@ -0,0 +1,4 @@
01 X PIC 9.
88 X-Is-One VALUE 1.
88 X-Is-Even VALUE 0 2 4 6 8.
88 X-Larger-Than-5 VALUE 6 THRU 9.

View file

@ -0,0 +1,28 @@
PROGRAM-ID. Condition-Example.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 Foo PIC 9 VALUE 5.
88 Is-Not-Zero VALUE 1 THRU 9
WHEN SET TO FALSE IS 0.
PROCEDURE DIVISION.
Main.
PERFORM Is-Foo-Zero
SET Is-Not-Zero TO FALSE
PERFORM Is-Foo-Zero
SET Is-Not-Zero TO TRUE
PERFORM Is-Foo-Zero
GOBACK
.
Is-Foo-Zero.
IF Is-Not-Zero
DISPLAY "Foo is not zero, it is " Foo "."
ELSE
DISPLAY "Foo is zero."
END-IF
.

View file

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

View file

@ -0,0 +1,2 @@
#t // <boolean> true
#f // <boolean> false

View file

@ -0,0 +1 @@
=AND(A1;B1)

View file

@ -0,0 +1,4 @@
0 0 FALSE
0 1 FALSE
1 0 FALSE
1 1 TRUE