|
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
Term: IF
Definition:
IF THEN...END IF statement is a single-level conditional statement which executes a sequence of statements based on a given condition: IF condition THEN A plain-English example of this could be, "IF the temperature is below 50 degrees, THEN turn on the heater." The IF-THEN-ELSE statement is next level of extension of above the IF-THEN statement, as it provides the ability to give direction for FALSE or NULL also. IF condition THEN A plain-English example of this could be, "IF the temperature is below 50 degrees, THEN turn on the heater, ELSE open a window." For multiple possible outcomes of a condition, we use the IF THEN ELSIF ENDIF statement. IF condition1 THEN Example Usage: The block of code below looks at the value of the variable 'V_GRADE'. If it is 'P' then it prints out 'PASS'. DECLARE Related Links:
Related Code Snippets:
|
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2024 psoug.org |