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:ConvertValueToSignedInteger
Jump to navigation
Jump to search
Usage[edit]
{{ConvertValueToSignedInteger | (Value)}}
- 1 = (Value) should be :
- Numerical value ( -100 - (+)100 )
Examples[edit]
- {{ConvertValueToSignedInteger|-1}} = -1
- {{ConvertValueToSignedInteger|1}} = +1
- {{ConvertValueToSignedInteger|Invalid}} = +0
Categorization[edit]
Coding[edit]
- If value of first parameter is undefind or empty, return +0
- If value of first parameter is defined and is not an integer, return +0
- If value of first parameter is defined and is an integer < 0 , return first parameter
- If value of first parameter is defined and is not an integer < 0, return the first parameter prefixed with a + and added to 0
+0