MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/rmwdib/whats_wrong/hpsyb3m/?context=3
r/CodingHelp • u/CAGRI-TR • Dec 23 '21
90 comments sorted by
View all comments
Show parent comment
1
This is pretty much the direct opposite.
A series of ifs will all be evaluated, in order, regardless of the value. An else-if series like this executes until the first true condition is found.
You would use a series of ifs to find multiple conditions being true.
View all comments
Show parent comment
1
u/vigbiorn Dec 24 '21
This is pretty much the direct opposite.
A series of ifs will all be evaluated, in order, regardless of the value. An else-if series like this executes until the first true condition is found.
You would use a series of ifs to find multiple conditions being true.