# Template:Ifeq

Template documentation

With this template #ifeq can be used in a way such that it does not strip spaces and newlines from the "then" and "else" part.

## Examples

`{{ifeq|x|x| p | q }}`

gives " p "`{{ifeq|x|y| p | q }}`

gives " q "

Template documentation

With this template #ifeq can be used in a way such that it does not strip spaces and newlines from the "then" and "else" part.

`{{ifeq|x|x| p | q }}`

gives " p "`{{ifeq|x|y| p | q }}`

gives " q "

Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.

Subpages of this template.

Subpages of this template.