Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
Template:IsIntegerWithinRange
Jump to navigation
Jump to search
Purpose[edit]
- Determine whether supplied value is an Integer within a given range or not.
- Template accepts three arguments and tests whether first argument is integer and is greater than or equal to second argument and less than or equal to the third argument
- Returns 0 on failue, or 1 on success
Usage[edit]
{{IsIntegerWithinRange | = default : <empty> (will return 0) // First argument is the value to use in conditional expression | = default : 0 // Second argument will determine the minimum value allowed for success | = default : 0 // Third argument will determine the maximum value allowed for success }}
Examples[edit]
code | result |
---|---|
{{IsIntegerWithinRange}} | 0 |
{{IsIntegerWithinRange|}} | 0 |
{{IsIntegerWithinRange|-5|1|100}} | 0 |
{{IsIntegerWithinRange|0|1|100}} | 0 |
{{IsIntegerWithinRange|+5|1|100}} | 1 |
{{IsIntegerWithinRange|5|1|100}} | 1 |
{{IsIntegerWithinRange|-5.5}} | 0 |
{{IsIntegerWithinRange|5.5|1|10}} | 0 |
{{IsIntegerWithinRange|1,234|1|2000}} | 0 |
{{IsIntegerWithinRange|ABC|1|100}} | 0 |
Categorization[edit]
Coding[edit]
0