Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


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

From DDO wiki
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