[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / spip-bonux / tests / balises / set_push.html
1 [(#REM)
2
3 la balise SET_PUSH sert a ajouter des valeurs dans un tableau #SET
4
5 ]
6
7 [(#REM)
8 SET GET|push = SET PUSH
9 ]
10 #SET{A,#ARRAY}
11 #SET{B,#ARRAY}
12 [(#SET{A,[(#GET{A}|push{abc})]})]
13 #SET_PUSH{B,abc}
14 [(#GET{A}|!=={#GET{B}}|oui)[(#SET{err,"A et B sont différents"})]]
15
16
17 [(#REM)
18 SET_PUSH peut être fait sans declarer un SET prealable
19 ]
20 #SET_PUSH{C,abc}
21 [(#GET{A}|!=={#GET{C}}|oui)[(#SET{err,"A et C sont différents"})]]
22
23
24
25 [(#GET{err}|?{ERREUR,OK}) #GET{err} ]