Raised This Month: $ Target: $400
 0% 

!! operator


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-28-2017 , 20:23   Re: !! operator
Reply With Quote #7

Quote:
Originally Posted by EFFx View Post
PHP Code:
!(g_admin[id]) 
It means if the user is not Admin

PHP Code:
!!(g_admin[id]) 
It means If is user Admin

It just mean the opposite. Am I right?
That entirely depends on what g_admin[id] contains. If it is user flags then no, that will not work. You should always use is_user_admin() if you want to know if they are an admin (unless, of course, you fully understand how flags work and you need something different than is_user_admin() provides).
__________________

Last edited by fysiks; 03-28-2017 at 20:24.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode