If

Returns the first value if the condition is true, or the second value if the condition is false.

Inputs

Condition
The condition used to determine the output. This input can be of type boolean or Boolean.

Value 1
A String object.

Value 2
A String object.

Output

Returns the String object associated with Value 1 or Value 2, depending on whether the condition was met.

Copyright IBM Corp. 2003, 2004