Search a variable for a word?

Is there a way in Gdevelop to check if a variable contains a word? I want to make a custom keyboard for people’s username’s, but I need a swear filter. I was thinking maybe I can do a wildcard search in a variable for each swear word when they try to save the username?

If anyone knows a way to do this please let me know. My game is really close to done but I have a few things left. I even put a working in-game leaderboard in it.

Anyways I would think you could check to see if the variables contain a swear before saving it. But if anyone has a better way I’m willing to learn too.


Gordon Donaldson

Check the expression builder, but I’m pretty sure there is a “Find in string” expression.