Numberswitch

From Sega Retro

Displays different text depending on whether a given number is higher than any of the options

Usage

{{numberswitch
| number=3
| this is the default
| 2=number greater or equals 2
| 3=number greater or equals 3
| 4=number greater or equals 4
}}

returns:

number greater or equals 3


{{numberswitch
| number=1991-01
| this is the default
| 1990-01=number greater or equals 2
| 1991-12=number greater or equals 3
| 1993-04=number greater or equals 4
}}

returns:

number greater or equals 1990-01