You can also enter the default value = "default value" after the variable name, for example:
test( $a = ${firstarg default="null"}, $b = ${secondarg default="null"} );
This solution worked for me, and I found that it was looking at predefined code templates. They are very useful and explain themselves.
source share