Template:Both

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

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).

Template Data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Both

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

Template parameters
Parameter Description Type Default Status
String1 1 First string string empty required
String2 2 Second string string empty required

See also