Changes

Jump to navigation Jump to search
Heavy-handed, but seems to work
Line 3: Line 3:  
<code><nowiki>{{ #arraydefine: array name | array values | delimiter (defaults to comma) | options }}</nowiki></code><br/>
 
<code><nowiki>{{ #arraydefine: array name | array values | delimiter (defaults to comma) | options }}</nowiki></code><br/>
 
<code><nowiki>{{#arrayprint:key|delimiter|pattern|subject|options}}</nowiki></code><br/>
 
<code><nowiki>{{#arrayprint:key|delimiter|pattern|subject|options}}</nowiki></code><br/>
<code><nowiki>{{#expr: expression }}</nowiki></code>
+
<code><nowiki>{{#expr: expression }}</nowiki></code><br/>
 +
<code><nowiki>{{#ifexpr: expression | value if true | value if false }}</nowiki></code><br/>
    +
====Simple test====
 +
{{ #arraydefine: test | 25 }}
 +
{{ #arrayprint: test }} <br/>
 +
{{ #expr:{{ #arrayprint: test }}/2}}
   −
{{ #arraydefine: test | 10 }}
+
====Multiple array test====
 +
{{ #arraydefine: a | 25 }}
 +
{{ #arraydefine: b | 50 }}
 +
{{#ifexpr: {{ #arrayprint: a }} > {{ #arrayprint: b }} | a is bigger than b | a is smaller than b }}
   −
{{ #arrayprint: test }}
+
{{ #arraydefine: a | 100 }}
 
+
{{ #arraydefine: b | 50 }}
{{ #expr:{{ #arrayprint: test }}/2}}
+
{{#ifexpr: {{ #arrayprint: a }} > {{ #arrayprint: b }} | a is bigger than b | a is smaller than b }}
     
62

edits

Navigation menu