This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:cprog:fall2023:projects:mmf0 [2024/02/26 06:28] – [else if] hcopp1 | notes:cprog:fall2023:projects:mmf0 [2024/02/26 06:30] (current) – [else] hcopp1 | ||
---|---|---|---|
Line 61: | Line 61: | ||
====else==== | ====else==== | ||
+ | |||
+ | ELSE is put at the end of a IF statement. ELSE will first check if the condition of the original IF statement was met, if it wasn't met, It then does something | ||
+ | |||
+ | Example: | ||
+ | < | ||
+ | if (condition0) | ||
+ | { | ||
+ | If condition0 is met do this .... | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | if condition0 isn't met do this .... | ||
+ | } | ||
+ | </ | ||
====RELATIONAL OPERATORS==== | ====RELATIONAL OPERATORS==== | ||