OScript String Manipulation

I am reviewing some code and have come across the following option for a subset of a string: mystring[:-4]

If mystring is 'abcdef', then what is returned with mystring[:-4]?

I understand if I use mystring[1:4] it will return 'abcd' or if I use mystring[-4:-2] it will return 'cd'.

So, what happens when you leave off the first parameter? Is there documentation for OScript string manipulation?

Thanks in advance.

Comments