I have a string variable like '1356' or '246' (interpret sprinkling areas) from which I want to process all single digits in a rule with the substring-command.
Is there any possibility to determine the end of the string, like StringLen() or something similar?
StringLen in rules ?
Moderators: grovkillen, Stuntteam, TD-er
Re: StringLen in rules ?
You could assign it to a variable and thus turn it into a numerical.
Then just divide it by 10 and check if its [int#N] representation is still > 0.
Then just divide it by 10 and check if its [int#N] representation is still > 0.
Re: StringLen in rules ?
Not optimal/pretty, but could work. Good that the segments start with 1 for me
Who is online
Users browsing this forum: No registered users and 13 guests