mhowerto
6 years agoNew Contributor
Script Routine Comments/Default values
I'm curious if it is possible to add comments or default values for script routines.
Also if you can make your script routines use an enum so parameters could be picked from a dropdown similar to pmLower in the example. It looks like this should be possible but I just can't find how to do it.
I have a function like:
def generic_function(param1="A String", param2=42, param3=[1,2,3], param4={"key1":"val1", "key2":"val2"}): # do the thing
but when I go to run script routine in the keyword test it just defaults all the parameters to None