184_notes:if

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
184_notes:if [2022/05/06 22:02] woodsna1184_notes:if [2022/05/06 22:03] – [Else Clauses] woodsna1
Line 18: Line 18:
     quotient = 999999     quotient = 999999
 </code> </code>
-In this code, the quotient will be set to some high number when the denominator is 0, instead of trying to calculate the true quotient. Code contained in else clauses only executes when the if statement's conditional evaluates to False.+In this code, the quotient will be set to some high number when the denominator is 0, instead of trying to calculate the true quotient. Code contained in else clauses only executes when the if statement's conditional evaluates to False. If the conditional is true, the else statement is skipped.
  
 ===== Nesting If Statements ===== ===== Nesting If Statements =====
  • 184_notes/if.txt
  • Last modified: 2022/05/07 01:21
  • by woodsna1