Can we define default values on parameters for a function?

Hi guys, do you know how to define default values on parameters for a function or helper?

For instance in Ruby it’s like this

def wait_screen_loading(timeout = 100)
wait_screen(timeout)


end

this timeout value can’t be nil, should be a valid value, for the example, a number.

How can I define the default value of a parameter on Eggplant?

Thanks a lot :smiley:

You’ll need to do it inside the handler:

to wait_screen_loading timeout
    if timeout is empty then set timeout to 100
 ...

thanks!