answersLogoWhite

0

if (condition) statement1

[else statement2]

example:

if (i==j);

else if (j==k) printf ("i!=j, j==k\n);

else printf ("i!=j, j!=k\n);

here statement1 is an empty-statement, statement2 is another if-statement

There are three forms of statements

IF-THEN

IF-THEN-ELSE

IF-THEN-ELSIF

Sequence of statements is executed only if the condition evaluates to TRUE

If condition evaluates to FALSE or NULL, it does nothing

In either case control passes to next statement after the IF-THEN structure

IF THEN

statements;

END IF;

Sequence of statements in the ELSE clause is executed only if the condition evaluates to FALSE or NULL

IF THEN

statements;

ELSE

statements;

END IF;

User Avatar

Wiki User

13y ago

What else can I help you with?