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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -