I have the following code:
var rtn = getParams(entity)
if (rtn.rc == false) { return; }
parameters = rtn.param;
Is there a way that I can put the call to getParams inside of the if statement? Also do I need to put the return; in braces with javascript? I am looking for a way to clean up this code snippet. Any suggestions would be appreciated.
Might as well do it all at once