Editing Comparison Operators 0 You are not logged in. The rich text editor does not work with JavaScript switched off. Please either enable it in your browser options, or visit your preferences to switch to the old MediaWiki editor <p data-rte-fromparser="true"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22Needs%20Examples%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7BNeeds%20Examples%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </p><p data-rte-fromparser="true" data-rte-empty-lines-before="1">A <b>comparison operator</b> is a type of <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22operator%22%2C%22link%22%3A%22operator%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Boperator%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Operator" title="Operator" class="mw-redirect">operator</a> which combines two <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22number%22%2C%22link%22%3A%22number%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Bnumber%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Number" title="Number" class="mw-redirect">number</a> objects to form a <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Boolean%22%2C%22link%22%3A%22Boolean%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BBoolean%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Boolean" title="Boolean" class="mw-redirect">Boolean</a> object. </p><p data-rte-fromparser="true" data-rte-empty-lines-before="1">If one of the objects is not a number, the arguments will be cast to the <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22string%22%2C%22link%22%3A%22string%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Bstring%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/String" title="String" class="mw-redirect">string</a> <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22type%22%2C%22link%22%3A%22type%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Btype%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Type?action=edit&redlink=1" class="new" title="Type (page does not exist)">type</a> and then compared. </p><p data-rte-fromparser="true" data-rte-empty-lines-before="1">All comparison operators start with <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Cis%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Cwas%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Chas%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, or <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Chad%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, which will collectively be represented here by <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22tag%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Btag%7Ccomparator%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> (for instance, <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Cis%20less%20than%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Cwas%20less%20than%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Chas%20less%20than%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />, and <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7Chad%20less%20than%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> would be collectively represented by <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22tag%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Btag%7Ccomparator%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Coperator%7C%20less%20than%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" />). </p><p data-rte-fromparser="true" data-rte-empty-lines-before="1">Standard comparison operators are: </p> <ul><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Equal%22%2C%22link%22%3A%22Equal%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BEqual%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Equal" title="Equal">Equal</a> </li><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Not%20equal%22%2C%22link%22%3A%22Not%20equal%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BNot%20equal%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Not_equal" title="Not equal">Not equal</a> </li><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Greater%20than%22%2C%22link%22%3A%22Greater%20than%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BGreater%20than%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Greater_than" title="Greater than">Greater than</a> </li><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Less%20than%22%2C%22link%22%3A%22Less%20than%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BLess%20than%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Less_than" title="Less than">Less than</a> </li><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Greater%20than%20or%20equal%22%2C%22link%22%3A%22Greater%20than%20or%20equal%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BGreater%20than%20or%20equal%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Greater_than_or_equal" title="Greater than or equal">Greater than or equal</a> </li><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Less%20than%20or%20equal%22%2C%22link%22%3A%22Less%20than%20or%20equal%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BLess%20than%20or%20equal%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Less_than_or_equal" title="Less than or equal">Less than or equal</a> </li></ul> <h2 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="1"> See also </h2> <ul><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22List%20of%20Keywords%22%2C%22link%22%3A%22List%20of%20Keywords%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BList%20of%20Keywords%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/List_of_Keywords" title="List of Keywords" class="mw-redirect">List of Keywords</a> </li><li><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Operators%22%2C%22link%22%3A%22Operators%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BOperators%5D%5D%22%7D" data-rte-instance="620390-751728268572a284c6af91" href="/wiki/Operators" title="Operators">Operators</a> </li></ul> <p data-rte-fromparser="true" data-rte-empty-lines-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%221%22%2C%22title%22%3A%22Navbox%5C%2FKeywords%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7BNavbox%5C%2FKeywords%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> <!-- RTE::{"spaces":0,"type":"LINE_BREAK"} --><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%221%22%2C%22title%22%3A%22stub%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bstub%7D%7D%22%7D" data-rte-instance="620390-751728268572a284c6af91" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </p> Loading editor Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above. Insert: – — … ° ≈ ≠ ≤ ≥ ± − × ÷ ← → · § Sign your username: ~~~~ Wiki markup: {{}} | [] [[]] [[Category:]] #REDIRECT [[]] <s></s> <sup></sup> <sub></sub> <code></code> <blockquote></blockquote> <ref></ref> {{Reflist}} <references/> <includeonly></includeonly> <noinclude></noinclude> {{DEFAULTSORT:}} <nowiki></nowiki> <!-- --> <span class="plainlinks"></span> Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶ # ¹ ² ³ ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ ⅞ ∞ ‘ “ ’ ” «» ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥ ♠ ♣ ♥ ♦ View this template This field is a spam trap. DO NOT fill it in! Edit summary Preview Mobile Desktop Show changes