User Tools

Site Tools


modding:function:and

This is an old revision of the document!


and

and

and

Syntax (and exp1 exp2 … expn) → True/Nil
Arguments exp1: an expression that evaluates to Nil or non-Nil
exp2 … expn: optional expressions that each evaluate to Nil or non-Nil.
Returns boolean: the result of anding all of the expressions
Category logical operator
Description Returns True if all the expressions are not Nil otherwise returns Nil.

Example

(block (someCondition) 
	(setq someCondition True)
	(and someCondition Nil)
	)

This will return a Nil. Return to Functions list

modding/function/and.1419655255.txt.gz · Last modified: 2017/01/26 00:34 (external edit)