<< function | Interpreter functions | iskeyword >> |
if conditional_expression_1, statements_1, elseif conditional_expression_2, statements_2, else statements_N end |
if and else statements form a control structure for conditional execution.
i = 0;
if i == 0
disp('ok')
elseif i == 1
disp('not ok 1')
else
disp('not ok 2')
end
for.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET