# Operators Category

## 1. () + ()

Perform mathematical addition.

**Example:**

When the space key is pressed, the sprite will report the result of "1 + 2".

## 2. () − ()

Perform mathematical subtraction.

**Example:**

When the space key is pressed, the sprite will report the result of "3 − 1".

## 3. () * ()

Perform mathematical multiplication.

**Example:**

When the space key is pressed, the sprite will report the result of "2 × 3".

## 4. () / ()

Perform mathematical division.

**Example:**

When the space key is pressed, the sprite will report the result of "6 ÷ 2".

## 5. pick random () to ()

Pick a random number from the specified range.

**Example:**

When the space key is pressed, the sprite will say "Hello!" for a random number (2-5) of seconds.

## 6. () > ()

If the value of the specified parameter is greater than the specified value, the report condition is met.

**Example:**

When the space key is pressed, if the loudness is greater than 50, the sprite will say "Too loud!".

## 7. () < ()

If the value of the specified parameter is less than the specified value, the report condition is met.

**Example:**

When the space key is pressed, if the distance the sprite to "Jellyfish1" is less than 10, the sprite will say "Too close!".

## 8. () = ()

If the value of the specified parameter equals the specified value, the report condition is met.

**Example:**

When the space key is pressed, if current year is 2019, the sprite will say "Nice!".

## 9. () and ()

If both the conditions are met, the report condition is met.

**Example:**

When the space key is pressed, the sprite will move forward for 10 steps. If touching "Jellyfish1" and "Jellyfish1" is pink, the sprite will go to (0,0).

## 10. () or ()

If either one of the two conditions is met, the report condition is met.

**Example:**

When the space key is pressed, the sprite will move forward for 10 steps. If touching "Jellyfish1" or the edge, the sprite will go to (0,0).

## 11. not ()

The report condition is met when the specified condition is not met.

**Example:**

When the space key is pressed, the sprite will move forward for 10 steps. If touching the edge, the sprite will go to (0,0).

## 12. join () ()

Join two specified character strings.

**Example:**

When the space key is pressed, the sprite will report current year.

## 13. letter () of ()

Report the letter at specified position of a character string.

**Example:**

When the space key is pressed, the sprite will report the first letter of "apple".

## 14. length of ()

Report the length of a specified character string.

**Example:**

When the space key is pressed, the sprite will report the length of "apple".

## 15. () contains ()?

If the specified character string contains the other specified character string, the report condition is met.

**Example:**

When the space key is pressed, the sprite will ask what your favorite color is. After you type in the answer, if your favorite color is red, the sound "Clapping" will be played; otherwise, the sound "Oops" will be played.

## 16. () mod ()

Calculate the remainder (modular) of two specified numbers.

**Example:**

When the space key is pressed, the sprite will report the remainder of "6 ÷ 4".

## 17. round ()

Round the specified number to the nearest integer.

**Example:**

When the space key is pressed, the sprite will report the rounded value of the timer.

## 18. () of ()

Perform specific mathematical operation on the specified number. Mathematical operations include: abs (absolute value), floor, ceiling, sqrt (square root), sin, sos, tan, asin, atan, acos, ln, log, e^, and 10^.

**Example:**

When the space key is pressed, the sprite will report the square root of 4.