Template talk:Iff
Jump to navigation
Jump to search
Returns text if argument's value is found in the list.
- Usage
{{iff|lvalue|rvalue1|rvalue2|..|rvalue9|then=thentext|else=elsetext}}
- Examples
- {{iff|foo|foo|bar|baz|then=found|else=not found}} :
found
- {{iff|foo|bar|baz|then=found|else=not found}} :
not found
- Caveats
- Both lvalue and rvalue must also be valid as argument names
- Up to 9 rvalues are taken