Skip to content

Commit f6c666c

Browse files
authored
Update 1735-system-nil.markdown
1 parent cdebb74 commit f6c666c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed
Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
# NIL
22

3-
> NIL
3+
> a = NIL
44
5-
NIL is used to mean 'not set' as distinct from having an INT set to 0
5+
Sets a variable to nil. NIL is used to mean 'not set' as distinct from having a number set to 0.
66

7+
### Example 1
78

9+
```
10+
b = NIL
11+
print b ' Output: Nil
12+
```
13+
14+
### Example 2
15+
16+
```
17+
b = NIL
18+
if(b == NIL) then print "b is not set"
19+
20+
' Output: b is not set
21+
```

0 commit comments

Comments
 (0)