One weird little error...
#8

Quote:
Originally Posted by Tigerbeast11
Sorry Don, I understood a bit, but not much about your post :S
This example will execute myFunction() only if myVariable ISN'T 1 - it means it will execute if myVariable is -2147483647, .. -2, -1, 0, 2, 3, 4, .. 2147483647.
pawn Код:
if(myVariable != 1)
{
  myFunction();
}
This example will execute myFunction() only if myVariable IS 0 - it means it will execute if myVariable is 0.
pawn Код:
if(myVariable == 0)
{
  myFunction();
}


Quote:
Originally Posted by Tigerbeast11
So, which one is better to use?
Depends on your situation.
Reply


Messages In This Thread
One weird little error... - by Tigerbeast11 - 31.10.2009, 12:28
Re: One weird little error... - by Finn - 31.10.2009, 12:36
Re: One weird little error... - by Tigerbeast11 - 31.10.2009, 12:38
Re: One weird little error... - by Finn - 31.10.2009, 12:43
Re: One weird little error... - by Tigerbeast11 - 31.10.2009, 13:26
Re: One weird little error... - by Correlli - 31.10.2009, 13:29
Re: One weird little error... - by Tigerbeast11 - 31.10.2009, 13:31
Re: One weird little error... - by Correlli - 31.10.2009, 13:36
Re: One weird little error... - by Tigerbeast11 - 31.10.2009, 13:40

Forum Jump:


Users browsing this thread: 3 Guest(s)