if statement - PHP IF construct when dealing with a part that is an exception -
i'm having trouble getting code work. , lost overview. can give me insight?
i'm looking how build if
construct.
if describe if construct in words:
mismatchbundle = true unless (adminpass = true & user = admin)
i wrote following code, didn't seem work:
if (($mismatchbundle == true) && ($adminpass != true && $thisuser['rankid'] != 1)
anyone knows how 'unless' part in code?
what this?
if (($mismatchbundle == true) && !($adminpass == true && $thisuser['rankid'] == 1)
is allowed ! before () section?
if (($mismatchbundle == true) && !($adminpass == true && $thisuser['rankid'] == 1)
using ! on entire section within ( ) worked intended.
Comments
Post a Comment