User:DavidJCobb/Template Sandbox/Ifeq

From ZeldaChaos
Jump to: navigation, search

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!

Personal tools
Namespaces

Variants
Actions
Glitches
Navigation
Affiliates
Toolbox
Google AdSense