Editing Help:ParserFunctions
From Homestar Runner Wiki
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
This page is 33 kilobytes long.
Current revision | Your text | ||
Line 83: | Line 83: | ||
Some examples: | Some examples: | ||
- | *'''<nowiki>{{#ifexpr: | + | *'''<nowiki>{{#ifexpr: 30 / 40 = 120 | yes | no }}</nowiki>''' returns '''{{#ifexpr: 30 / 40 = 120 | yes | no }}'''. |
- | + | ||
*'''<nowiki>{{#ifexpr: {{PAGENAME}} = ParserFunctions | This is a help page | No}}</nowiki>''' returns the error '''{{#ifexpr: {{PAGENAME}} = ParserFunctions | This is a help page | No}}''' because "ParserFunctions" (the text returned by <nowiki>{{PAGENAME}}</nowiki>) is a string, not a number. | *'''<nowiki>{{#ifexpr: {{PAGENAME}} = ParserFunctions | This is a help page | No}}</nowiki>''' returns the error '''{{#ifexpr: {{PAGENAME}} = ParserFunctions | This is a help page | No}}''' because "ParserFunctions" (the text returned by <nowiki>{{PAGENAME}}</nowiki>) is a string, not a number. | ||