Forum Discussion
jose_pita
Super Contributor
This is what I do in this cases:
This way you don't need to worry about what you send in.
If you need to use this function on a keyword just send undefined as the parameters, not String type.
function awesome(param1, param2)
{
if(param1 == undefined)
param1 = "whatever"
if(param2 == undefined)
param2 = 0;
}
awesome();
This way you don't need to worry about what you send in.
If you need to use this function on a keyword just send undefined as the parameters, not String type.
Seretta
9 years agoOccasional Contributor
thanks, that's just what I needed
Related Content
- 2 years ago
Recent Discussions
- 4 days ago
- 4 days ago