AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   implement not equal (https://forums.alliedmods.net/showthread.php?t=50661)

firewall 01-31-2007 12:31

implement not equal
 
how do i implement not equal function ?

P34nut 01-31-2007 12:33

Re: implement not equal
 
Code:
if (!equal("gaben", "fat")) {    client_print(0, print_chat, "Not equal") } else {    client_print(0, print_chat, "Equal") }

Brad 01-31-2007 14:50

Re: implement not equal
 
Or, when dealing with anything other than strings:

Code:
if (thisInteger != thatInteger) {    client_print(0, print_chat, "Not equal") } else {    client_print(0, print_chat, "Equal") }


All times are GMT -4. The time now is 00:36.

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