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 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!
User:Faltout/SandBox/IfPositiveInteger
< User:Faltout | SandBox
Jump to navigation
Jump to search
Usage[edit]
{{User:Faltout/SandBox/IfPositiveInteger | 1 = | 2 = | 3 = }} <!-- end if PosInt -->
- 1 test value. Can be anything.
- 2 text to be generated if value is a positive integer. If ommited, the test value will be generated in case it is a positive integer or 0.
- 3 text to be generated if value is not a positive integer. If ommited, nothing will be generated in case the test value is not a positive integer or 0.
Examples[edit]
{{User:Faltout/SandBox/IfPositiveInteger|123}}
123
{{User:Faltout/SandBox/IfPositiveInteger|123| It is! }}
It is!
{{User:Faltout/SandBox/IfPositiveInteger|-123| It is! | Guess it's not?}}
Guess it's not?
{{User:Faltout/SandBox/IfPositiveInteger|-123|3= No, it's not}}
No, it's not
{{User:Faltout/SandBox/IfPositiveInteger|(1 + 1)|3=Still no}}
Still no
{{User:Faltout/SandBox/IfPositiveInteger|Hello World|3=Hi there!}}
Hi there!
{{User:Faltout/SandBox/IfPositiveInteger|42|3=Is it?}}
42