User Tools

Site Tools


modding:function:eq

eq

eq

eq

Syntax (eq exp1 [exp2 … expn]) → True/Nil
Arguments exp1: An expression you want to check for equality to other expressions. It will be evaluated, and it's value used for the comparison
[exp2 … expn]: More expressions to compare.
Returns boolean: True if they are all equal. Nil otherwise.
Category logical operator
Description Compares any amount of expressions and returns True if they are all equal, Nil if they are not.

Example

(eq '(a b) '(a b))

This will return True.

(eq 2 (add 1 1))

This will return True.

Return to Functions list

modding/function/eq.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1