Difference between revisions of "Test"

From Mondothèque

Line 9: Line 9:
 
|class=
 
|class=
 
}}
 
}}
 
+
LOOPS!
 
{{ #vardefine: i | 0 }}{{
 
{{ #vardefine: i | 0 }}{{
 
   #while:
 
   #while:
Line 16: Line 16:
 
* {{ #var: i }}{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
 
* {{ #var: i }}{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
 
}}
 
}}
blah
+
ARRAYS!
 +
{{#arraydefine: colors | red;#FF0000, green;#00FF00, blue;#0000FF }}
 +
{{
 +
  #loop: i
 +
  | 0                    <!-- loops start value for {{#var:i}} -->
 +
  | {{#arraysize:colors}} <!-- number of loops -->
 +
  | <nowiki/>
 +
* {{
 +
    #arraydefine: val | {{#arrayindex:colors | {{#var:i}} }} | ;
 +
 
 +
    }}<span style="color:{{#arrayindex: val | 1}}">{{
 +
    #arrayindex: val | 0
 +
    }}</span>
 +
}}
 +
IFS!

Revision as of 09:49, 18 October 2016

LOOPS!

  • 0* 1* 2* 3* 4

ARRAYS!

  • red
  • green
  • blue

IFS!