User:DavidJCobb/Template Sandbox/Ifeq
From ZeldaChaos
An attempt at creating an if-equals-else construct, using a modified variant of the switch template.
Usage
{{ifeq |str1 |eq str2=doIfTrue |else=doIfFalse}}
Example
{{ifeq |David |eq David=Hi, David! |else=Who are you?}}
Output: Hi, David!