Lotus script Left function

Hello All - I would like to pull back everything from the “~” in the first line of a Body field of an email. How can i accomplish this in LS? or simply stated what is the Script equivelant of @LeftBack(FIELD;“~”)

Thanks

Pat

Subject: Lotus script Left function

Try

YourString = StrLeft(YourString, “~”)

If “~” is not in the string the return is Null

Subject: Actually, it is the LotusScript StrLeftBack function

Bill,

You’re assuming that Patrick is searching the string from left to right. He asked for the LotusScript equivalent of @LeftBack(FIELD;“~”) which implies searching a string from right to left. In this case, the correct answer is…

YourString = StrLeftBack(YourString, “~”)

Ken A Collins (no relation to Patrick)

Subject: RE: Lotus script Left function

Perfect. Thank so much!