Logical Operators
• 06 Jan 2021
• Contributors
• Print
• Share
• Dark
Light

# Logical Operators

• Print
• Share
• Dark
Light

"=" is an assignment operator, e.g. If you run var x = 1; then x will have the value of 1.

"== or !=" is a comparison operator that checks if the value of something is equal to the value of something else. e.g. if(x == 1) will evaluate to true and so will if(x == true) because 1 will evaluate to true and 0 evaluate to false.

"=== or !== "is another comparison operator that checks if the value of something is equal to the value of, and is the same type as something else. e.g. if(x === 1) will evaluate to true however, if(x === true) will evaluate to false because 1 (the value of x) is an integer and true is a boolean.

"<" is smaller than

"<=" is smaller or equal

">" is bigger than

"between" is between two values

"not between" is not between two values

"is empty" is that there is no value inside this field

"is not empty" is that there is a value inside this field