function with multiple inputs...

BlitzPlus Forums/BlitzPlus Programming/function with multiple inputs...

Yes, you just have to make some of your parameters have default values.
Function something(s$="hello", b=1)

This allows you to call...
    something() ; s$ is "hello" and b is 1
    something("goodbye") ; s$ is "goodbye" and bye is 1
    something("goodbye", 5) ; s$ is "goodbye" and bye is 5

The only trick is that all the parameters with default values have to come after ones without.

This all sounds familiar. Didn't I answer something like this very recently? =)