This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

!! operator


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-28-2017 , 21:30   Re: !! operator
Reply With Quote #12

It is not used because instead of

PHP Code:
if(!!g_admin[id]) 
is just

PHP Code:
 if(g_admin[id]) 
Right?

Then with that the !! is useless.

Edit:

Quote:
Originally Posted by fysiks View Post
Using this on a boolean makes absolutely no sense since it's a double negative and will always return the original value.
That's what I understood.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-28-2017 at 21:33.
EFFx 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 01:10.


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