[HELP] If statements
Okay, so, im getting a little confused lately with a particular case of if statements, more exactly the following, i know what "!" means, but i cant process it in this sittuation..
can anyone explain it to me please? PHP Code:
|
Re: [HELP] If statements
PHP Code:
PHP Code:
&& = And Hope this helps |
Re: [HELP] If statements
i know that.. here is what i need...
how do i write these two examples into one? PHP Code:
|
Re: [HELP] If statements
PHP Code:
PHP Code:
Depending on what you want to do both of them is correct. |
Re: [HELP] If statements
as in the first case, if any of that is true, i dont want it executed further
i just digged in my pc and found an older test server and managed a quick test with client prints, and it resulted that your second code is what i wanted sorry for the idiot question, im scripting without testing, i have pc problems... |
Re: [HELP] If statements
How how can be arab and belgian at the same time?? Oh.. Anyway, use this:
if(user_is_arab(id) || user_is_belgian(id) && (!user_is_arab(id) || !user_is_belgian(id))) This means that action will be executed only if he's not both belgian and arab. This means that |
Re: [HELP] If statements
Testing your own code is a critical part of learning. I highly recommend that you always test your code before asking a question on the forums.
|
Re: [HELP] If statements
@sirius, well, you can have double nationality, also it was just an example
im sorry, i didnt explain well, i wanted the following written differently with ! PHP Code:
|
Re: [HELP] If statements
Quote:
|
Re: [HELP] If statements
too late bro... xD
|
| All times are GMT -4. The time now is 09:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.