Docsity

If statement coding notes for CodeHS, Study notes of Computer science

Partial preview of the text

Download If statement coding notes for CodeHS and more Study notes Computer science in PDF only on Docsity!

If statement coding notes.

If statements

Tracy checks the condition.

if it is true, she performs the command below.

if the condition is false, she skips to next commands.

Example:

radius = 100

Conditions must use comparison operators.