modding:function:and
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
modding:function:and [2017/01/27 02:17] – 0xabcdef | modding:function:and [2017/01/27 02:17] (current) – 0xabcdef | ||
---|---|---|---|
Line 9: | Line 9: | ||
^ | [exp2 ... expn]: optional expressions that each evaluate to **Nil** or non-**Nil**. | | ^ | [exp2 ... expn]: optional expressions that each evaluate to **Nil** or non-**Nil**. | | ||
^ Returns | If all arguments return a non-**Nil** value, then returns the value of the last argument. Otherwise, returns **Nil**. If there is only one argument, then returns the value of that argument. | | ^ Returns | If all arguments return a non-**Nil** value, then returns the value of the last argument. Otherwise, returns **Nil**. If there is only one argument, then returns the value of that argument. | | ||
- | ^ Category | [[logical operator | + | ^ Category | [[logical operator |
^ Description | Uses lazy evaluation, which means that it stops after it finds a **Nil** value or ends up evaluating every argument if all of them return a non-**Nil** value. | | ^ Description | Uses lazy evaluation, which means that it stops after it finds a **Nil** value or ends up evaluating every argument if all of them return a non-**Nil** value. | | ||
modding/function/and.1485483439.txt.gz · Last modified: 2017/01/27 02:17 by 0xabcdef