Trouble using strings in If statements using OR

 Accepted Answer

if race == "H2" || race == "H1" || race == "H3" || race == "H4"

More Answers (0)

Categories

Products

Asked:

on 20 Jan 2022

Commented:

on 21 Jan 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!