Skip to content

Instantly share code, notes, and snippets.

@joshdcomp
Created October 24, 2013 02:56
Show Gist options
  • Save joshdcomp/7130560 to your computer and use it in GitHub Desktop.
Save joshdcomp/7130560 to your computer and use it in GitHub Desktop.
// I'm talking something like this:
if( !get_option() ) echo 'hello';
// There's no option value, but it doesn't echo hello becuase the return value isn't false.
// In order to echo hello, I have to write something akin to:
if( get_option() != '' ) echo 'hello';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment