With the title, I don't mean that I want to check if the label text is equal to something, the thing I want to check is if the label text, no matter how long, contains specific characters.
In my game, I have a combination lock which stores all pressed numbers in a label. I don't have a confirm button, as I want it to be similar to games like Silent hill and Cry of Fear.
Let's say the player presses the numbers and the label ends up like this:
117374925863424
In my case, I want to check if the numbers "5863" appear in ANY part of the label above.
11737492 5863 424
Checking the text like this doesn't work, as the label needs to be exactly "5863":
if Label.text = "5863":
DoSomething()
I would appreciate any help