6.3: if, else, elseif - Engineering LibreTexts
https://eng.libretexts.org/Courses/Oxnard_College/Matlab_and_Octave_Programming_for_STEM_Applications_(Smith)/06%3A_Conditionals_Part_1/6.03%3A_if_else_elseif
WEBFeb 17, 2023 · if, elseif, else statement. If you have 2 or more separate conditions that you need to check, but only one can be satisfied at a time, you can use an if, elseif statement. In an if, elseif statement, a series of possible conditions are checked in order. The order is important because as soon as one condition is satisfied, the commands
DA: 94 PA: 88 MOZ Rank: 39 Up or Down: Up