modding:function:or
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| modding:function:or [2017/01/26 00:14] – 0xabcdef | modding:function:or [2017/01/26 00:26] (current) – 0xabcdef | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ^ [exp2 ... expn] | Additional expressions to be evaluated | | ^ [exp2 ... expn] | Additional expressions to be evaluated | | ||
| ^ Category | [[logical operator functions|logical operator]] | | ^ Category | [[logical operator functions|logical operator]] | | ||
| - | ^ Returns | The value of the first expression that does not return **Nil**, or **Nil** if there is none | | + | ^ Returns | The value of the first expression that does not return **Nil**, or **Nil** if there is none. If there is only one argument, returns the value of that argument. |
| - | ^ Description | Uses lazy evaluation, which means that it stops after it finds a non-**Nil** | + | ^ Description | Uses lazy evaluation, which means that it stops after it finds a non-**Nil** |
| === Example === | === Example === | ||
modding/function/or.1485389678.txt.gz · Last modified: by 0xabcdef
