Last modified on 23 January 2013, at 14:39

Is empty/doc

Revision as of 14:39, 23 January 2013 by JKN (Talk | contribs) (1 revision)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Returns true if the first parameter is assigned no value. It can be useful in de-obfuscating wiki markup. It was created to facilitate adding tracking categories.

Usage

Logic
if not x then 1.
if x then <null>.

Examples

{{#if:{{is empty| }}|empty|not empty}} → empty

{{#if:{{is empty|value}}|empty|not empty}} → not empty