I could explain using words, but an example would do much better:
$gettok(a||b ,1 ,124) returns a
$gettok(a||b ,2 ,124) returns b
But I'd like
$gettok(a||b ,2 ,124) to return $null
$gettok(a||b ,3 ,124) to return b
I can't think of any particular workaround besides using a lot of $mid()s, and I was wondering if there was an easier way to do it that I overlooked.
Thanks in advance.