Difference between revisions of "Demo:IfExpr2"

From PKC
Jump to navigation Jump to search
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>


{{#invoke|CodeWrapper|returnHTMLText|
{{#invoke|CodeWrapper|returnHTMLText|{{#invoke|CodeWrapper|returnNowkiText|{{:{{PAGENAME}}}} }} }}
  {{#invoke|CodeWrapper|returnNowkiText|{{:{{PAGENAME}}}} }}
}}
</noinclude>
</noinclude>

Revision as of 10:03, 19 May 2022

{{#ifexpr: 7=3 | {{#expr: 3+2=5}} RESULT | some text representing {{#expr: 1<1}} result }}


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

<nowiki>{{#ifexpr: 7=3
 | {{#expr: 3+2=5}} RESULT
 | some text representing {{#expr: 1<1}} result
}}</nowiki>

{{#invoke|CodeWrapper|returnHTMLText|{{#invoke|CodeWrapper|returnNowkiText|{{#ifexpr: 7=3 | {{#expr: 3+2=5}} RESULT | some text representing {{#expr: 1<1}} result }}

}} }}