%VAR = "cats and mice";if(getSubStr(%VAR, 0, 1) $= "C" && getSubStr(%VAR, 1, 1) $= "A" && getSubStr(%VAR, 2, 1) $= "T") echo("success");
%VAR = "cats and mice";if(getSubStr(%VAR, 0, 3) $= "cat") echo("success");
It's easier to just merge all that into one:Code: [Select]%VAR = "cats and mice";if(getSubStr(%VAR, 0, 3) $= "cat") echo("success");
that gets only "s and mice"