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
- 10 months ago
Recent Discussions
- 3 days ago