Operator (Part 1)

Operators: are programming blocks used to perform mathematical operations or logical comparisons.

These blocks allow you to manipulate numbers and make decisions based on conditions.

Such as:

operators

Math (Arithmetic)

math-row

These mathematical operations allow you to perform calculations and manipulate numbers to control the behavior of your EV3 robot.

Display answer in ev3 brick:

How much it's 5 + 3 ?

1-add-8 1-5-Math-add-8

How much it's 6 x 4?

2-multiply-24 2-Math-nultiplication-24

You need to use Display block. I used this display block in order to make it as big as possible!

Try it out with many other numbers! You can practice Math with the robot!

Math (Inequalities)

inequalities

These inequalities are used to "compare" so then make decisions based on conditions.

-> Greater Than (>): Checks if one value is greater than another. For example, 5 > 3 is true because 5 is greater than 3.

-> Less Than (<): Checks if one value is less than another. For example, 3 < 5 is true because 3 is less than 5.

-> Equal To (=): Checks if two values are equal. For example, 5 = 5 is true because 5 is equal to 5.

Remember the 3 type of shape of input?

Well, I told you that the circle input is for OPERATOR.

Inequality-example

Notice it's the same thing!

Inequality-example

We use Operator to be able to be able to set more values that it's avaible.