Editing And 1 The edit could not be undone due to conflicting intermediate edits. You are not logged in. The edit could not be undone due to conflicting intermediate edits. 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 The '''and''' operator is a [[Boolean Operators|boolean operator]] which returns {{tag|literal|true}} only if all arguments are true, else returns {{tag|literal|false}}. Its token is named '''AND'''. == [[FDS]] == {{See Also/small|Infix notation}} {{codeblock|{{tag|value|Boolean}}{{tag|whitespace}}{{code|operator|and}}{{tag|whitespace}}{{tag|value|Boolean}}}} == Truth Table == {|class="wikitable" style="text-align:center;" |+2 Inputs !colspan=2|Inputs !rowspan=2|Output |- !A!!B |- |T||T |T |- |T||F |F |- |F||T |F |- |F||F |F |} === Example === {{codeblock|{{code|keyword|If}}{{code|whitespace| }}{{code|variable|I have no pants}}{{code|whitespace| }}{{code|operator|and}}{{code|whitespace| }}{{code|variable|I must scream}}{{code|whitespace| }}{{code|keyword|then}}{{code|punctuation|:}}{{code|whitespace| }}{{code|keyword|I would}}{{code|whitespace| }}{{code|method|scream without pants}}{{code|puncuation|.}}{{code|whitespace| }}{{code|keyword|That's what I would do}}{{code|punctuation|.}}}} This loops the next part of code if the variable {{code|variable|Applejack}} is equal to {{code|literal|99}} and the variable {{code|variable|Spike}} is equal to {{code|literal|12}}. This is equivalent to the following '''Java''' code: {{codeblock|<SOURCE LANG=java>if (iHaveNoPants && iMustScream) { screamWithoutPants(); }</SOURCE>}} == See Also == *[[List of Keywords]] *[[Operators]] {{Navbox/Phrases}} {{stub}} 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