Toggle menu
15
236
70
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:19, 21 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> 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 <big><code>x</code></big> then <code>1</code>. : if <big><code>x</code></big> then <null>. == Examples == <code><nowiki>{{#if:{{is empty| }}|empty|not empty}}</nowiki></code>...")
(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

Without this template

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

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