Raised This Month: $ Target: $400
 0% 

bitwise help - open the brackets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-27-2012 , 16:57   bitwise help - open the brackets
Reply With Quote #1

Hi, I'd like to know how to simplify this and open the brackets:
PHP Code:
if( !(iParam THE_FLAG))
{


__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-27-2012 , 17:48   Re: bitwise help - open the brackets
Reply With Quote #2

~iParam & THE_FLAG , if you don't like parentheses.
__________________

Last edited by Arkshine; 11-28-2012 at 03:16.
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-27-2012 , 20:25   Re: bitwise help - open the brackets
Reply With Quote #3

. . . I see no brackets.

The former is easier to understand by most but I guess if you use it often enough, the latter will become easily remembered.
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-27-2012 , 20:32   Re: bitwise help - open the brackets
Reply With Quote #4

Agreed, just use the damn parenthesis..or use macros so you don't need to stare at it in your code.
__________________
Bugsy 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 19:11.


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