If my optional variable in a function is a numerical type and I don't pass anything into it, inside the function it behaves as if I passed a 0 to it. If my optional variable is a string and I don't pass anything into the function through that variable, inside the function it behaves as if I passed the empty string "" to it.
What I want though is to make a function who's optional variable can be checked in a way to see if in fact nothing had been passed to it, and if in fact nothing was passed to it, the function should behave differently than if a 0 or a "" was passed to it. How do I do this?
What I want though is to make a function who's optional variable can be checked in a way to see if in fact nothing had been passed to it, and if in fact nothing was passed to it, the function should behave differently than if a 0 or a "" was passed to it. How do I do this?