Learn

In addition to `ð` operator, Emojicode also offers other comparison operators to expand our use cases!

Hereâs a list of the comparison operators:

Operator Operation
âïž Less than
â¶ïž Greater than
âïžð Less than or equal to
â¶ïžð Greater than or equal to

Like the `ð` operator, the listed operators all compare two values and returns a `ð` or `ð` value. For example:

``2 âïž 5 ð­ ð``

We can read the expression above as a question, âis `2` less than `5`?â Since the answer is yes, then `ð` is returned. Below are a few more examples to read through to understand the use of comparison operators:

``````4 âïž 4         ð­ ð
10 â¶ïž 5        ð­ ð
10.6 âïžð 10.6 ð­ ð
3.14 â¶ïžð 4    ð­ ð``````

Once youâre ready, tackle the steps in this exercise!

### Instructions

1.

Imagine weâre in a theme park that has different attractions. Each attraction has a height requirement (in centimeters) as shown by the variables `hurlyWhirlyMinHeight` and `tinyHouseMaxHeight`.

Weâll be adding in checks to see if our visitor can safely enjoy these attractions, but first, we need a visitor!

Type out your height (in centimeters) and use `â¡ïž` to assign it to a variable called `myHeight`.

2.

As we can tell from `hurlyWhirlyMinHeight`, the Hurly-Whirly ride has a minimum height of `120` cm.

Create an `âª` statement that checks if `myHeight` is less than to `hurlyWhirlyMinHeight`. Inside the `ðð` block, add a `ðâïž` statement that prints out `ð€You must be taller than 120cm to rideð€`.

3.

Our other attraction, the Tiny House has a maximum height of `214` cm (as seen by `tinyHouseMaxHeight`).

Create another `âª` statement that checks if `myHeight` is greater than or equal to `tinyHouseMaxHeight`. Inside the `ðð` block, add a `ðâïž` statement that prints out `ð€You must be 214cm or shorter to enterð€`.