I have a label I can enter numbers into and I can detect if single numbers are in the text with (for each number respectively):
var oneIsWritten = false
var one = bbcode_text.find("1")
if one >= 1:
oneIsWritten = true
print ("There's a 1 in the text!")
(I can go the same way for "
there's no 1 in the text" with "
if one <= 0: ...)
Now, if I'd like to know if there is actually any number between 1 and 9 written (explicitly leaving the 0 out), doing this with all the numbers true/false on their own would be too much handywork. I'm sure there is an elegant way of achieving this (maybe with an array...?)
What could a code for this look like?