Raised This Month: $ Target: $400
 0% 

Alternative to is_user_admin() ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-17-2013 , 17:52   Re: Alternative to is_user_admin() ?
Reply With Quote #1

It is rather the same, but boolean check is better.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-17-2013 , 18:53   Re: Alternative to is_user_admin() ?
Reply With Quote #2

Quote:
Originally Posted by ConnorMcLeod View Post
It is rather the same, but boolean check is better.
Now iam interested to know why boolean check is better, because i always use ! thinking it was the better way
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-18-2013 , 00:07   Re: Alternative to is_user_admin() ?
Reply With Quote #3

Quote:
Originally Posted by Jhob94 View Post
Now iam interested to know why boolean check is better, because i always use ! thinking it was the better way
! is a logical operator meaning it works on booleans so it is the boolean check.
__________________
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-18-2013 , 14:17   Re: Alternative to is_user_admin() ?
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
on booleans so it is the boolean check.
Wow that part was very easy to understand
Btw i understood, but that last part was really lol
__________________
Jhob94 is offline
Reply



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 10:54.


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