Need help with character arrays and "IF"

Perhaps you could have sets representing alphabets, fetch and compare:

The eAlphabets is an enumerator, the NewVar_0 is a Set, not an array. As to why, they’re just handy. Nothing stops you from having an array of enumerators. If you have multiple alphabets you can pull data from the appropriate set. One could argue here you could build a Map instead, also an option, I guess.


Unlike arrays, Sets can only contain unique values and are very efficient at retrieving them - so you do not have to go through the entire list to Find something.

Sets also allow for some unique operations. If you’re more confident with an array, it’s fine. It’s just that if you avoid a ForLoop in BPs, you’re saving a lot of performance. It does not matter in some cases, of course but can be critical in others.

Do tell if you get it to work the way you need.

I have the same algorithm like in the picture but without bool.

I need to check the 1 typed character and if it’s eng - allow to type only eng or if the 1 rus - allow rus.

A better example:

Could work, untested, though.

It’s very helpful, but why are u using enum instead array here?

Yes. i already have good results! Thanks!