IF STATEMENT

Description

Let you execute alternative commands based on certain conditions.

Click here to navigate to the PostgreSQL documentation page for this syntax.

Grammar Syntax

IF ... THEN ... END IF

IF ... THEN ... ELSE ... END IF

IF ... THEN ... ELSIF ... THEN ... ELSE ... END IF

Sample Source Patterns

Input

The only changes that are done to the If Statement, are the following

The conditions are enclosed by parenthesis.

ELSIF is changed to ELSEIF.

IF [NOT] FOUND generates an UDF that contains the FOUND keyword logic, replaces the FOUND keyword for a call to that function.

Known Issues

No known issues.

MSCEWI1020: Custom UDF inserted.

Last updated

Was this helpful?