| MATLAB Function Reference | Search  Help Desk |
| else | See Also |
Conditionally execute statements
Syntax
ifexpressionstatementselsestatementsend
Description
Theelse command is used to delineate an alternate block of statements.
ifThe second set ofexpressionstatementselsestatementsend
statements is executed if the expression has any zero elements. The expression is usually the result of
whereexpression ropexpression
rop is ==, <, >, <=, >=, or ~=.
See Also
break, elseif, end, for, if, return, switch, while