Branching with Logical connectivity’s
0
Branching with Logical connectivity’s:
- In this situation one “IF” is associated with a collection of conditions using either logical either logical “AND” or logical “OR” operator.
Syntax1:
If condition AND condition2 THEN
Statement1;
Statement2;
ELSE
Statement1;
Statement2;
END IF:
Syntax2:
IF condition1 AND condition2 THEN
Statement1;
Statement2;
ELSE
Statement1;
Statement2;
END IF;
Syntax3:
IF condition1 AND condition2 OR condition3 xTHEN
Statement1;
Statement2;
ELSE
Statement1;
Statement2;
END IF;
If condition AND condition2 THEN
Statement1;
Statement2;
ELSE
Statement1;
Statement2;
END IF:
Syntax2:
IF condition1 AND condition2 THEN
Statement1;
Statement2;
ELSE
Statement1;
Statement2;
END IF;
Syntax3:
IF condition1 AND condition2 OR condition3 xTHEN
Statement1;
Statement2;
ELSE
Statement1;
Statement2;
END IF;
0 comments: