Difference between revisions of "Demo:IfExpr1"

From PKC
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:


For illustration purpose, the above code segment is shown as follows:
For illustration purpose, the above code segment is shown as follows:
<syntaxhighlight lang=HTML>
 
<nowiki>'''Wrapper wikicode or text''' {{#ifexpr: 3<5
{{#invoke:CodeWrapper| returnHTMLText |{{:{{PAGENAME}}}} }}
| This expression is {{#expr: 0=0}}
| This expression is evaluated to {{#expr: 9>9}}
}} '''Wrapper wikicode'''.</nowiki>
</syntaxhighlight>
</noinclude>
</noinclude>

Latest revision as of 04:20, 20 May 2022

'''Wrapper wikicode or text''' {{#ifexpr: 3<5 | This expression is {{#expr: 0=0}} | This expression is evaluated to {{#expr: 9>9}} }} '''Wrapper wikicode'''.


For illustration purpose, the above code segment is shown as follows:

'''Wrapper wikicode or text''' {{#ifexpr: 3&lt;5
 | This expression is {{#expr: 0=0}}
 | This expression is evaluated to {{#expr: 9&gt;9}}
}} '''Wrapper wikicode'''.