Need help checking to see if text contains a specific character

Anirudh Venkataramanan shared this question 1 year ago

I want to check to see if some text (which is inputted by the user) has a specific character (like 'a' or '/' for example), and then do something based on whether or not the character exists.

How would you recommend I do this?

Would using an if-statement with GeoGebra script work? Or would I have to utilize Javascript?

Comments (2)


use indexof()

© 2020 International GeoGebra Institute