Jump to content
xisto Community
Sign in to follow this  

If Statment In Php actually, the OR thing to be exact

Recommended Posts

if ($a == 0 || $b == 0){ echo lala}

Is that if part of the statement correct? I couldn't get it to trigger with $b = 0... I assume that it's another one of those obvious and dumb mistakes I make when scripting... just about anything...

Oh, nvm. I put the elseif (it's actually not "if" in my script) after if $a == 1, so that's what made it wrong.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.