Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Logical functions can be used to handle conditional information.

And

Description

Returns 

Returns TRUE

 if

 if all its arguments

are 

are TRUE;

returns 

returns FALSE

 if

 if any argument

is 

is FALSE.

Remark

The arguments must evaluate

to TRUE or 

to TRUE or FALSE.

NOTE. The And function can take more than two arguments as input.

Example

Ex. AND(2+2=4, 4+0=4, 2+3=6) 

returns 

returns FALSE.False:

False

Description

Returns the logical

value 

value FALSE.

Remark

You can also type the

word 

word FALSE

 directly

 directly onto the worksheet or into a formula; it is interpreted as the logical

value 

value FALSE.

Example

If

Description

Takes three arguments as input. Returns the second argument if the first evaluates

to 

to TRUE. Otherwise returns the third argument.

Remark

The first input must evaluate

to TRUE or 

to TRUE or FALSE.

Example

Ex. if({OrderDetail.Price}= 0,’FREE’,{OrderDetail.Price}) -

 returns

 returns FREE if the price is 0, otherwise it returns the price.

Not

Description

Reverses the value of its argument.

Remark

Argument should evaluate

to TRUE or 

to TRUE or FALSE.

Example

Ex. Not(FALSE) -

returns 

returns TRUE.

Or

Description

Returns 

Returns TRUE

 if

 if any argument

is 

is TRUE.

Remark

The arguments must evaluate to logical values such

as TRUE or 

as TRUE or FALSE.

NOTE. The ‘Or’ function can take more than two arguments as input.

Example

Ex. OR(2+2=4, 4+0=8, 2+3=6) -

returns 

returns TRUE.

Switch

Description

This function should be used instead of placing if() functions inside of if() functions.

Takes any even number of inputs arguments.

Remark

The 1st

 argument

 argument will be the test value to compare to.

The 2nd

 argument

 argument will be returned if none of the comparisons return true.

The 3rd, 5th, 7th… arguments will be compared to the 1st

 argument

 argument. When the first match occurs the following argument will be returned.

For example if argument 3 matches argument 1 then the 4th

 argument

 argument will be returned.

Example

Ex. Switch({Categories.CategoryName},”NOT FOUND”, “Beverages”, “Drink up!”, “Condiments”, “Enhance”, “Confections”, “Sweet Tooth”) – returns a string based on the Category Name.

True

Description

Returns the logical

value 

value TRUE.

Remark

You can also type the

word 

word TRUE

 directly

 directly onto the worksheet or into a formula; it is interpreted as the logical

value 

value TRUE.

Example