• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Conditionals

Conditionals are what make programming smart. Conditionals ask questions, and based on the answer, they either do or do not execute code associated with them. The type of question they ask is a simple yes or no, or rather a true or false question such as whether one number is greater than another.

When building a conditional, such as the if statement, you put a condition within parenthesis that the conditional looks at. If the condition is met, in other words, if it is true, then the code associated with the if statement is run. If it is not met, or is false, the entire code within is skipped over.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint