Skip to content

If

Conditional operation.

$ wo 'If[True, 1]'
1
$ wo 'If[False, 1]'
Null
$ wo 'If[True, 1, 0]'
1
$ wo 'If[False, 1, 0]'
0
$ wo 'If["x", 1, 0, 2]'
2
$ wo 'If[True, 1, 0, 2, 3]'

If::argb: If called with 5 arguments; between 2 and 4 arguments are expected.
.* (regex*)
If[True, 1, 0, 2, 3]