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 :D

Comments

Sign In or Register to comment.