Equal

Syntax

Equal(Expression1, Expression2)

Description

Returns a value of 1 if parameter 1 is equal to parameter 2. Otherwise returns a value of zero.

Note: This function is included for backwards compatibility with earlier versions of WEAP. In the latest versions of WEAP you can now use the standard equals operator "=" directly in your expressions. This helps to simplify your expressions and make them easier to understand.

Example

Equal(-1,3) = 0
Equal(3,3) = 1
-1 = 3  --> 0
3 = 3  --> 1