Help: Pulling integers out of a string, then making a comparison

Hi!

maybe this could help you:
EXAMPLE:
##########################
...
int var1; //any int variables
int var2;
int var3;

String stringOne, stringTwo, stringThree;
String cumulateString;
.
.
.

void loop ()
{
stringOne = String(var1); //write integers into string
stringTwo = String(var2);
stringThree = String(var3);

cumulateString=stringOne+stringTwo+stringThree; // if you want to connect the strings
...
// with this method you can easily create your own String combinations.

if (varXY<=cumulateString.toInt()<varXZ) { // if you want to compare the cumulateString also with an
Integer, then you use the ".toInt()" function.
...
}

#####################################

Hope this helps you.
I couldn“t test that exact code fragement, but I remember used it that way. :slight_smile: