Decision Constructs

ViviFire allows you to test for various conditions and perform different actions depending on the result. You can test for true or false conditions, various values of an expression, or when code cannot continue under exceptional conditions.

If...Then...Else statement

The If...Then...Else statement allows you to test one or more conditions, then execute one or more statements depending on each condition. The following list summarizes the various ways it can be used:

See If...Then...Else Statement for more information.

Select...Case statement

The Select...Case statement allows you to test an expression for one of various values, then execute one or more statements if a match is or is not found.

See Select...Case Statement for more information.

Try...Catch...Finally statement

The Try...Catch...Finally statement allows you to execute code in an environment such that exceptional conditions can be caught in an orderly manner. One or more statements can execute depending on the type of exception. There is also a way to specify one or statements that must always execute whether an exception has occurred or not.

See Try...Catch...Finally Statement for more information.

See also