Template:IsNum

From OrthodoxWiki Commons
Revision as of 09:43, May 8, 2008 by GabrielH (talk | contribs) (New page: {{#IfEq:{{{1|}}}|0|1|{{#IfEq:{{#Expr:{{{1|}}}/{{{1|}}}}}|1|1|0}}}}<noinclude> ;Description :This templates returns "1" (numeric one) if the parameter has a numeric value, or "0" (numeric ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

0

Description
This templates returns "1" (numeric one) if the parameter has a numeric value, or "0" (numeric zero) if not (i.e. text or empty).
Syntax
{{IsNum|<value>}}
Examples
{{IsNum|100}} = 1
{{IsNum|abc}} = 0