User Tools

Site Tools


notes:cprog:fall2023:projects:mmf0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:cprog:fall2023:projects:mmf0 [2024/02/26 06:25] – [else if] hcopp1notes:cprog:fall2023:projects:mmf0 [2024/02/26 06:30] (current) – [else] hcopp1
Line 46: Line 46:
 ====else if==== ====else if====
  
-ELSE IF is put at the end of a IF statement. ELSE IF will first check if the condition of the original IF statement was met, if it wasn't met, It then prompts another IF statement +<color #ed1c24>ELSE IF</color> is put at the end of a <color #00a2e8>IF</color> statement. <color #ed1c24>ELSE IF</color> will first check if the condition of the original <color #00a2e8>IF</color> statement was met, if it wasn't met, It then prompts another <color #c8bfe7>IF</color> statement 
  
 Example: Example:
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:
 +<code>
 +if (condition0) 
 +{
 +     If condition0 is met do this ....
 +
 +else  
 +{
 +     if condition0 isn't met do this ....    
 +}
 +</code>
 ====RELATIONAL OPERATORS==== ====RELATIONAL OPERATORS====
  
notes/cprog/fall2023/projects/mmf0.1708928730.txt.gz · Last modified: 2024/02/26 06:25 by hcopp1