Using if in geogebra

Nia shared this question 1 month ago
Answered

Hey everyone,


I want to check if one segment - a - is equal to another - b. And if this is true, to show “yes” and if it’s false to show “no”. I want to do this when I click on a button.


Can you help me?

Thank you in advance!

Comments (3)

photo
1

The check is just a==b. You can show this check automatically or by clicking on a button, see file added.

chris

photo
1

equal length, equal length and parallel , same extremum????

photo
1

What you need is a boolean value.

I would create 2 texts in the same position, and then:text "Yes" → Properties → Condition to show object → a ==b

text "No" → Properties → Condition to show object → a ≠ b

© 2021 International GeoGebra Institute