Arcade supports many operators. Operators are logical functions that are included in an expression, such as equal to or not equal to. These operators are typically represented by a symbolic character or multiple symbolic characters. Some of the common operators you will use are as follows:
- Basic operators
- Logical operators
The basic operators are as follows:
- The + operator: This adds two numbers or concatenates two strings.
- The - operator: This subtracts two numbers.
- The *operator: This multiplies two numbers.
- The /operator: This divides two numbers.
- The ++operator: This increments a number variable by 1.
The logical operators are as follows:
- The ||operator: This means or.
- The &&operator: This means and.
- The ==operator: This means...