I have written some user defined functions that used a dummy value to effectively provide this sort of thing. I posted an earlier version of MID$ before it was added to this basic that used a value of 0 in the third input to do exactly the same thing as not providing a third input. It was simple to check for this value inside the function.
Dale