How to create a default value for inputs in a function

I want to achieve something like proc main(a, b, c, d), where input c and d get hardly changed. Is there a default value that i can set to c and d when i can just go main a,b; ?

and when i do want to change c and d value i’ll go main a, b, c,d;
Regards
Kent

Yes, they’d be optional arguments.
See how the wobj argument is checked for presence, then only used if present in Example 1:
http://developercenter.robotstudio.com/BlobProxy/manuals/RapidIFDTechRefManual/doc369.html

Thank you soup, that’s exactly all i need. And you’ve just pointed me to a awesome place for programming references.