How would I do something like the following?
Code: Select all
SubStr( str, start, (stop==0 ? () : (stop - start)) )
My intention is to access the remainder of the string in cases where
stop==0. As far as I can tell,
SubStr() doesn't have any specific value that represents "the rest of the string", other than omitting the value. Is there a special AHK value that I can send to represent nothing?
Thanks!
Edit: Just to make sure I'm clear, I'm wondering if I can accomplish this by specifying some type of null input:
Code: Select all
SubStr( str, start, (stop==0 ? (StrLen(str) + -start + 1) : (stop - start)) )