Logic function: logical disjunction
Form: If Parameter1 = x Or Parameter2 = y Then a Else b
Syntax: {{Ifor|test1=Parameter1|val1=x|test2=Parameter2|val2=y|then=a|else=b}}
Examples
Code | Returns |
---|---|
{{Ifor|test1=foo|val1=foo|test2=bar|val2=bar}} |
Code | Returns |
---|---|
{{Ifor|test1=foo|val1=foo|test2=bar|val2=foo}} |
Code | Returns |
---|---|
{{Ifor|test1=foo|val1=bar|test2=bar|val2=bar}} |
Code | Returns |
---|---|
{{Ifor|test1=foo|val1=bar|test2=bar|val2=foo}} |
Code | Returns |
---|---|
{{Ifor|test1=foo|val1=foo|test2=bar|val2=bar|then=foobar!|else=no foobar today}} | foobar! |
Code | Returns |
---|---|
{{Ifor|test1=foo|val1=nope|test2=bar|val2=nope|then=foobar!|else=no foobar today}} | no foobar today |
Revise
At current, this template serves too limited a scope for practical use. If no one has any qualms with it, I'll revise this template to compare a multitude of parameters (20 or 30). hornoir (talk) 23:34, 20 February 2009 (UTC)
New parameter
@Alfakim, Ligulem, and Hornoir:
Hi,
I imported the template into fr:Wiki and added a "valall" parameter which lead to all strings being compared to vallall. You may be interested in importing it into en:Wiki, I did not change anything else.
Arflhn (talk) 17:30, 19 November 2020 (UTC)
🔥 Top keywords: Main PageSpecial:SearchWikipedia:Featured picturesYasukeHarrison ButkerRobert FicoBridgertonCleopatraDeaths in 2024Joyce VincentXXXTentacionHank AdamsIt Ends with UsYouTubeNew Caledonia2024 Indian general electionHeeramandiDarren DutchyshenSlovakiaKingdom of the Planet of the ApesAttempted assassination of Robert FicoLawrence WongBaby ReindeerXXX: Return of Xander CageThelma HoustonFuriosa: A Mad Max SagaMegalopolis (film)Richard GaddKepler's SupernovaWicked (musical)Sunil ChhetriXXX (2002 film)Ashley MadisonAnya Taylor-JoyPlanet of the ApesNava MauYoung SheldonPortal:Current eventsX-Men '97