Template:Both: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(Blanked the page)
(Undo revision 245507 by Bellababe (talk))
Line 1: Line 1:
{{#if:{{{1|}}}|{{#if:{{{2|}}}|1|}}|}}<noinclude>{{high-use}}''Usage:'' <nowiki>{{both|string1|string2}}</nowiki>


Produces '''1''' (equivalent to a true condition) if both ''string1'' and ''string2'' are non-empty; otherwise produces the empty string (false condition).
[[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]]</noinclude>

Revision as of 17:26, 29 April 2012

This template is used on many pages.
To avoid any disruptions and to save server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at the talk page before implementing them.

Usage: {{both|string1|string2}}

Produces 1 (equivalent to a true condition) if both string1 and string2 are non-empty; otherwise produces the empty string (false condition).