summaryrefslogtreecommitdiff
path: root/examples/nq/util.sin
blob: 20cf3c4b37a3b94c31e6deeaee76947268c79714 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[def not [x]
    [if x
        0
        1]]

[def and [x y]
    [if x
        y
        0]]

[def != [x y]
    [- x y]]

[def = [x y]
    [not [!= x y]]]