Rev 15107 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15107 | mquerol | 1 | <h2 class="wimscenter">Liste complète des relations conditionnelles</h2> |
2 | Toutes les comparaisons sont faites sur des chaînes de caractères : |
||
3 | <span class="tt wims_code_words">string1 rel string2</span>. |
||
4 | Plusieurs comparaisons peuvent être reliées par les opérateurs <span class="tt wims_code_words">and</span> et <span class="tt wims_code_words">or</span>. |
||
5 | Les parenthèses sont alors utilisées pour construire des expressions logiques complexes de comparaison. |
||
196 | bpr | 6 | |
15107 | mquerol | 7 | :Relations |
8 | :Relation,Exemple,Signification |
||
9 | |||
3469 | bpr | 10 | :== |
17348 | bpr | 11 | string1 == string2 <br> string1 = string2 |
12 | avec <span class="tt wims_code_words">if</span>: vrai si <span class="tt wims_code_words">string1</span> et <span class="tt wims_code_words">string2</span> sont identiques ; <br> avec <span class="tt wims_code_words">ifval</span>: vrai si les évaluations numériques de <span class="tt wims_code_words">string1</span> et de <span class="tt wims_code_words">string2</span> sont égales. |
||
3469 | bpr | 13 | :!= |
17348 | bpr | 14 | string1 != string2 <br> string1 <> string2 |
15 | avec <span class="tt wims_code_words">if</span>: vrai si <span class="tt wims_code_words">string1</span> et <span class="tt wims_code_words">string2</span> ne sont pas identiques ; <br> avec <span class="tt wims_code_words">ifval</span>:vrai si les évaluations numériques de <span class="tt wims_code_words">string1</span> et de <span class="tt wims_code_words">string2</span> ne sont pas égales ; |
||
3263 | bpr | 16 | :< |
8354 | bpr | 17 | string1 < string2 |
15107 | mquerol | 18 | vrai si l'évaluation numérique de <span class="tt wims_code_words">string1</span> est strictement inférieure à celle de <span class="tt wims_code_words">string2</span> |
3263 | bpr | 19 | :<= |
8354 | bpr | 20 | string1 <= string2 |
15107 | mquerol | 21 | vrai si l'évaluation numérique de <span class="tt wims_code_words">string1</span> est inférieure ou égale à celle de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 22 | :> |
8354 | bpr | 23 | string1 > string2 |
15107 | mquerol | 24 | vrai si l'évaluation numérique de <span class="tt wims_code_words">string1</span> est strictement supérieure à celle de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 25 | :>= |
8354 | bpr | 26 | string1 >= string2 |
15107 | mquerol | 27 | vrai si l'évaluation numérique de <span class="tt wims_code_words">string1</span> est supérieure à celle <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 28 | :isin |
8354 | bpr | 29 | string1 isin string2 |
15107 | mquerol | 30 | vrai si <span class="tt wims_code_words">string1</span> est une sous-chaîne de caractères de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 31 | :notin |
8354 | bpr | 32 | string1 notin string2 |
15107 | mquerol | 33 | vrai si <span class="tt wims_code_words">string1</span> n'est pas une sous-chaîne de caractères de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 34 | :iswordof |
8354 | bpr | 35 | string1 iswordof string2 |
15107 | mquerol | 36 | vrai si <span class="tt wims_code_words">string1</span> est un mot de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 37 | :notwordof |
8354 | bpr | 38 | string1 notwordof string2 |
15107 | mquerol | 39 | vrai si <span class="tt wims_code_words">string1</span> n'est pas un mot de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 40 | :isvarof |
8354 | bpr | 41 | string1 isvarof string2 |
15107 | mquerol | 42 | vrai si <span class="tt wims_code_words">string1</span> est une variable mathématique de l'expression <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 43 | :notvarof |
8354 | bpr | 44 | string1 notvarof string2 |
15107 | mquerol | 45 | si <span class="tt wims_code_words">string1</span> n'est pas une variable mathématique de l'expression <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 46 | :isvariableof |
8354 | bpr | 47 | string1 isvariableof string2 |
15107 | mquerol | 48 | vrai si <span class="tt wims_code_words">string1</span> est une variable mathématique de l'expression <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 49 | :notvariableof |
8354 | bpr | 50 | string1 notvariableof string2 |
15107 | mquerol | 51 | vrai si <span class="tt wims_code_words">string1</span> n'est pas une variable mathématique de l'expression <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 52 | :isitemof |
8354 | bpr | 53 | string1 isitemof string2 |
15107 | mquerol | 54 | vrai si <span class="tt wims_code_words">string1</span> est un item de la liste <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 55 | :notitemof |
8354 | bpr | 56 | string1 notitemof string2 |
15107 | mquerol | 57 | vrai si <span class="tt wims_code_words">string1</span> n'est pas un item de la liste <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 58 | :islineof |
8354 | bpr | 59 | string1 islineof string2 |
15107 | mquerol | 60 | vrai si <span class="tt wims_code_words">string1</span> est une ligne de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 61 | :notlineof |
8354 | bpr | 62 | string1 notlineof string2 |
15107 | mquerol | 63 | vrai si <span class="tt wims_code_words">string1</span> n'est pas une ligne de <span class="tt wims_code_words">string2</span>. |
3263 | bpr | 64 | :issamecase |
8354 | bpr | 65 | string1 issamecase string2 |
15107 | mquerol | 66 | vrai si <span class="tt wims_code_words">string1</span> et <span class="tt wims_code_words">string2</span> sont les mêmes textes à des espaces multiples près, mais tenant compte de la casse des lettres. |
3263 | bpr | 67 | :notsamecase |
8354 | bpr | 68 | string1 notsamecase string2 |
15107 | mquerol | 69 | vrai si <span class="tt wims_code_words">string1</span> et <span class="tt wims_code_words">string2</span> ne vérifient pas le critère ci-dessus. |
3263 | bpr | 70 | :issametext |
8354 | bpr | 71 | string1 issametext string2 |
15107 | mquerol | 72 | vrai si <span class="tt wims_code_words">string1</span> et <span class="tt wims_code_words">string2</span> sont les mêmes textes à des espaces multiples près, à la casse près et aux lettres accentuées près. |
3263 | bpr | 73 | :notsametext |
8354 | bpr | 74 | string1 notsametext string2 |
15107 | mquerol | 75 | vrai si <span class="tt wims_code_words">string1</span> et <span class="tt wims_code_words">string2</span> ne vérifient pas le critère précédent. |