Operators

Function

Description

uEQ

Returns 1 if both parameters are equal and no parameter is NULL

uNE

Returns 1 if both parameters are not equal and no parameter is NULL

uGT

Returns 1 if the first parameter is greater than the second parameter and no parameter is NULL

uGE

Returns 1 if the first parameter is greater or equal than the second parameter and no parameter is NULL.

uLT

Returns 1 if the first parameter is lower than the second parameter and no parameter is NULL

uLE

Returns 1 if the first parameter is lower than or equal the second parameter and no parameter is NULL

NoteFor compatibility reasons, operators are also provided as functions.




uEQ

Description

Returns 1 if both parameters are equal and no parameter is NULL

Syntax

number uEQ(value1, value2)

Parameters

value1, value2

Numeric or string values to compare

Examples

Example 1

uEQ(1,2)    // returns 0uEQ(1,1)    // returns 1uEQ(null,1) // returns 0



uNE

Description

Returns 1 if both parameters are not equal and no parameter is NULL

Syntax

number uNE(value1, value2)

Parameters

value1, value2

Numeric or string values to compare

Examples

Example 1

uNE(1,2)    // returns 1uNE(1,1)    // returns 0uNE(null,1) // returns 0



uGT

Description

Returns 1 if the first parameter is greater than the second parameter and no parameter is NULL

Syntax

number uGT(value1, value2)

Parameters

value1, value2

Numeric or string values to compare

Examples

Example 1

uGT(2,1)    // returns 1uGT(1,2)    // returns 0uGT(1,1)    // returns 0uGT(null,1) // returns 0



uGE

Description

Returns 1 if the first parameter is greater or equal than the second parameter and no parameter is NULL

Syntax

number uGE(value1, value2)

Parameters

value1, value2

Numeric or string values to compare

Examples

Example 1

uGE(2,1)    // returns 1uGE(1,2)    // returns 0uGE(1,1)    // returns 1uGE(null,1) // returns 0



uLT

Description

Returns 1 if the first parameter is lower than the second parameter and no parameter is NULL

Syntax

number uLT(value1, value2)

Parameters

value1, value2

Numeric or string values to compare

Examples

Example 1

uLT(2,1)    // returns 0uLT(1,2)    // returns 1uLT(1,1)    // returns 0uLT(null,1) // returns 0



uLE

Description

Returns 1 if the first parameter is lower than or equal the second parameter and no parameter is NULL

Syntax

number uLE(value1, value2)

Parameters

value1, value2

Numeric or string values to compare

Examples

Example 1

uLE(2,1)    // returns 0uLE(1,2)    // returns 1uLE(1,1)    // returns 1uLE(null,1) // returns 0