Skip to content

Commit b175a8d

Browse files
committed
update
1 parent 820d7e3 commit b175a8d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,3 +742,21 @@ The *if()* function takes a boolean expression, a call/statement to execute if t
742742
[1,1,1]
743743
```
744744

745+
###ifs(bool_exp, true\_call...)
746+
747+
The *ifs()* function takes a series of arguments that go by the pattern of one bool expression and one execution to process. The list of arguments should thus be even. This function will execute every statement that has a boolean expression that evaluates to true. Every boolean expression that does not evaluate to true will not be executed.
748+
749+
750+
```
751+
>> =(d, 33)
752+
undefined
753+
>> ifs(
754+
.. ==(d, 32), 5,
755+
.. ==(d, 33), $(4),
756+
.. >(d, 10), =(d, +(d, 1))
757+
.. )
758+
4
759+
undefined
760+
>> do(d)
761+
34
762+
```

0 commit comments

Comments
 (0)