Sha256: 6b848251129e12128113d99eeb04c9a986822c81b01de79f237a35ffcad5c89a

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

5 REM IF false THEN line_number
10 IF 0 THEN 40
20 PRINT "ok"
30 GOTO 45
40 PRINT "fail"
45 REM IF true THEN line_number
50 IF -1 THEN 80
60 PRINT "fail"
70 GOTO 90
80 PRINT "ok"
90 REM IF true THEN statements
110 IF -1 THEN PRINT "ok" : PRINT "ok"
105 REM IF false THEN statements
120 IF 0 THEN PRINT "fail" : PRINT "fail"
128 REM IF true GOTO
130 IF -1 GOTO 160
140 PRINT "fail"
150 GOTO 170
160 PRINT "ok"
170 REM IF true THEN...ELSE
180 IF -1 THEN PRINT "ok" ELSE PRINT "fail"
185 REM IF false THEN...ELSE
190 IF 0 THEN PRINT "fail" ELSE PRINT "ok"
200 REM nested
210 IF -1 THEN IF -1 THEN PRINT "ok" ELSE PRINT "fail" ELSE PRINT "fail"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basic101-0.4.0 test/integration/tests/fast/if.bas
basic101-0.2.0 test/integration/tests/fast/if.bas
basic101-0.1.0 test/integration/tests/fast/if.bas