how many branches can i create using if statement? is it limited?
An IF
statement always has exactly two branches: one where the condition is FALSE
and one where the condition is TRUE
. A branching construct that has more than two branches is usually called CASE
or SWITCH
. In Pascal, it's CASE
.