Hey everyone!
I'm trying to write a procedure that has optional parameters which are set to fixed values if no value is given, i.e. something like
Code:
proc Test (int n, int m = 10) {
return(n*m);
}
Test(2);
//-> 20
Test(2,5);
//-> 10
However, I couldn't find any straight forward way to do this inside of the documentation. Is there any possibility to do this?
Thanks in advance.