Operators are the things that assign, compare and combine values.
The equals = symbol is used to assign a value to something.
The string called $StringName has been assigned (now contains) the phrase This value.
Comparison operators will take two values, compare them, and continue on depending on a TRUE or FALSE result. These types of comparisons will be very useful for if/else statements and other loops.
The last batch of operators are known as logical operators. They will usually take two of the comparison operator conditions (above) and compares them to each other.
Sounds a bit confusing doesn't it? Don't worry, it shall all become clear as you go through the various pages following.
The equals = symbol is used to assign a value to something.
$StringName = "This value."
The string called $StringName has been assigned (now contains) the phrase This value.
Comparison operators will take two values, compare them, and continue on depending on a TRUE or FALSE result. These types of comparisons will be very useful for if/else statements and other loops.
| == | is equal to |
|---|---|
| != | is not equal to |
| < | is less than |
| > | is greather than |
| <= | is less than or equal to |
| >= | is greather than or equal to |
The last batch of operators are known as logical operators. They will usually take two of the comparison operator conditions (above) and compares them to each other.
| && | AND |
|---|---|
| || | OR |
Sounds a bit confusing doesn't it? Don't worry, it shall all become clear as you go through the various pages following.
