Module:If any equal
Appearance
This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
Usage
This module checks all positional parameters to see if any of them is equal to the parameter "value". If so, it will output "yes", otherwise "no".
Examples
{{#invoke:If any equal|main|a|b|c|d|value=c}}
gives yes{{#invoke:If any equal|main|a|b|c|d|value=r}}
gives no{{#invoke:If any equal|main|a|b|c|d|value=}}
gives no