Logical Function

<< Click to Display Table of Contents >>

Current:  Script > Commonly Used Script Function Reference List 

Logical Function

Previous pageReturn to chapter overviewNext page

Function

Description

Return type

Example

and

If all its arguments are TRUE, return TRUE

boolean

and(Object param1, Object param2, Object param3, Object param4)

or

Returns TRUE if either argument is TRUE

boolean

or(Object param1, Object param2, Object param3, Object param4)

not

The logic of its parameters is negated

boolean

not(Object logic)

iif

Optional judgment, if you specify a condition evaluate to TRUE and return a value; if FALSE then return another value.

object

iif(Object condition, Object trueval, Object falseval)