DriveWorks Pro 15: IfNonBoolean [send feedback...]

IfNonBoolean

Checks to see if its first argument is a boolean. If the value is a boolean it is returned as-is, otherwise a secondary value is returned.

Syntax

IfNonBoolean(Primary Value As Boolean, Alternative Value As String)

Where:

Primary Value is the value whose type should be tested.

Alternative Value is the value which will be returned if the type of the first value fails the type test.

Examples

RuleMeaning
IfNonBoolean(OptionRequiredReturn,FALSE)Will return FALSE when the value coming from the control OptionRequired is not a boolean.


Table of Contents