1/14
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Assignment operators
used to assign values to variables
Comparison operator
are used to compare two values or variables.
==
equal to (a==b) ; asking if a is truly equal to b
!=
not equal (a!=b) ; asking if a is not equal to b)
>
greater than
less than
=
greater than or equal to
=
less than or equal to
logical operator
used to test for true (1) or false (0) values
&&
logical and
||
logical or
!
logical not : !(a>5&&b<7)
if statement
specify a block of code to be executed, if a specified condition is true
else statement
to specify a block of code to be executed, if the same condition is false
else if statement
to specify a new condition if the first condition is false