Difference between revisions of "Template:And"

From Yugipedia
Jump to: navigation, search
(rm TagSync crap, other tweaks)
(see also)
Line 7: Line 7:
 
* Only 2 #if's are supported.
 
* Only 2 #if's are supported.
 
* A 1 is returned if true, and blank if ''false'' is not specified. So {{Tlx|and}} is compatible with both #if and also #ifexpr if you use false=0.
 
* A 1 is returned if true, and blank if ''false'' is not specified. So {{Tlx|and}} is compatible with both #if and also #ifexpr if you use false=0.
 +
 +
== See also ==
 +
* {{tl|xor}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 04:14, 10 March 2015

{{and}} is a logical template used in conjunction with ParserFunctions to give the plaintext ParserFunctions the ability to use logical and/or statements. (or already works simply by putting variables side by side such as {{{1|}}}{{{2|}}})

Usage

{{and|#if 1|#if 2}}
{{and|#if 1|#if 2|false=...}}
  • #if 1 and #if 2 are put directly into {{#if:}} parserfunctions so the rules for using them are the same as with the #if parserfunction.
  • Only 2 #if's are supported.
  • A 1 is returned if true, and blank if false is not specified. So {{and}} is compatible with both #if and also #ifexpr if you use false=0.

See also