if
Programming
Conditional execution. Executes the first block whose condition is true (nonzero). Optional elseif and else clauses provide alternative paths.
Syntax
if condition ... end
if condition ... else ... end
if condition ... elseif condition ... else ... end
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab