01-19-2009 08:52 AM - edited 03-14-2019 03:33 AM
I am a basic script writer and have not needed to use Java. I now have a need to find strings that are six characters (digits) long and begin with a "1". Using if VAR == "1....." doesn't work. Does anyone have a simple solution for this simple string compare? Do I need to use Java? Example please?
01-19-2009 10:17 AM
Found it! String methods under the If Step:
If String.StartsWith("1")
01-19-2009 05:48 PM
Yep.
You can check length with the .Length(6) value.
((variable.StartsWith("1")) && (variable.Length(6)))
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide