Using an ELSEIF statement under another IF
Show older comments
Hi,
Is it possible to check for a condition, and if that condition is true, check for more? If so, can you please explain? Here's an example of what I mean
if input < 1
if input2 < 1
% then do this
if input2 < 2
% then do this
end
1 Comment
bio lim
on 28 Nov 2016
Yes, it's possible!
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!