If there is more than one condition then keyword elseif is useful.
If there is more than one elseif then the first true condition
is selected (even other also are true).
Examples
a=1;ifa==1thendisp("a equals 1")elseifa==2thendisp("a equals 2")elseifa==1&a>0thendisp("this condition is true, but never will be selected, because it is the second true condition.")elsedisp("Case not handled.")end