Skip to content

Instantly share code, notes, and snippets.

@jtreher
Created November 14, 2014 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtreher/8c35afe7be83f59954fe to your computer and use it in GitHub Desktop.
Save jtreher/8c35afe7be83f59954fe to your computer and use it in GitHub Desktop.
function test1( numeric foo ){
return 0 && isNull( foo ) ? true : foo > 0;
}
function test2( numeric foo ){
return 0 && ( isNull( foo ) ? true : foo > 0 );
}
writeOutput( "Return val is: " & test1() );
writeOutput('<br>');
writeOutput( "Return val is: " & test2() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment