Editing QuakeC Operators From Quake Wiki Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Anti-spam check. Do not fill this in! == Logical operations == ! // logical not && // logical and || // logical or Take care that in if() conditional expressions containing two or more logical clauses, all the clauses will be evaluated before the condition test (like in Basic, and unlike C). That means that if one part of your condition is not always valid or defined, you had better decompose your if() into two successive if(). It should also make it faster. Comparisons <= < >= > == // equal, beware at the double = like in C. != // not equal, like in C. == Operations on floats or integer == * / - + Use parenthesis to remove ambiguities. Those operators perform bitwise operations on integers: & // bitwise and | // bitwise or These operators treat floats like integers, so they are usually meant to be used with values made of bit masks. Summary: Please note that all contributions to Quake Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see Quake Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission! To edit this page, please answer the question that appears below (more info): Who created the Quake Soundtrack (Hint: In three uppercase letters)? Cancel | Editing help (opens in new window) Retrieved from "http://quakewiki.org/wiki/QuakeC_Operators"