Template:Boolandnot/doc

From AnthroWiki

This template is used to logically link two strings.

The template generates a non-empty string (i.e. returns "true") if the first parameter is non-empty and the second is empty.

Copy template

Parameters

Two strings.

Truth table

Truth table
Input Output
{{boolandnot| | }}
{{boolandnot| |1}}
{{boolandnot|1| }} 1
{{boolandnot|1|1}}

Examples

  • {{#if: {{Boolandnot| | }}| yes | no}} gives

no

  • {{#if: {{Boolandnot|xxx| }}| yes | no}} gives

yes

  • {{#if: {{Boolandnot| |xxx}}| yes | no}} gives

no

  • {{#if: {{Boolandnot|xxx|xxx}}| yes | no}} gives

no