"contains" but for matching index?
Posted: Thu Nov 20, 2014 9:44 am
Quick question:
How can I use "contains" (or any command, actually) to evaluate if a substring is contained within a string AND the indexes match up so that
"xyz" contains "x" == true
and
"xyz" contains "xy" == true
but
"xyz" contains "yz" == false
and
"xyz" contains "y" == false
I could write this in my sleep in a C-like syntax, but yet again Livecode just baffles me.
How can I use "contains" (or any command, actually) to evaluate if a substring is contained within a string AND the indexes match up so that
"xyz" contains "x" == true
and
"xyz" contains "xy" == true
but
"xyz" contains "yz" == false
and
"xyz" contains "y" == false
I could write this in my sleep in a C-like syntax, but yet again Livecode just baffles me.