Expand cheatsheet with examples for conditions, decision trees, and loops; add related images.
This commit is contained in:
@@ -35,3 +35,40 @@
|
|||||||
| Rendez-vous | `mainPerson` | [Person](properties.md#sec:entity-person) | si configuré par l'administrateur fonctionnel |
|
| Rendez-vous | `mainPerson` | [Person](properties.md#sec:entity-person) | si configuré par l'administrateur fonctionnel |
|
||||||
| Rendez-vous | `thirdParty` | [ThirdParty](properties.md#sec:entity-thirdparty) | si configuré par l'administrateur fonctionnel |
|
| Rendez-vous | `thirdParty` | [ThirdParty](properties.md#sec:entity-thirdparty) | si configuré par l'administrateur fonctionnel |
|
||||||
|
|
||||||
|
## Conditions
|
||||||
|
|
||||||
|
### Avec un `if`
|
||||||
|
|
||||||
|
| Balise | Contenu |
|
||||||
|
| --- | --- |
|
||||||
|
| Balise ouvrante de la condition | `if test="v.mainPerson.age > 18` |
|
||||||
|
| Balise fermante | `/if` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
### Arbre de décision
|
||||||
|
|
||||||
|
| Balise | Contenu |
|
||||||
|
| --- | --- |
|
||||||
|
| Balise ouvrante | `choose test=""` |
|
||||||
|
| Balise ouvrante de la première condition | `when test="v.person.age < 18"` |
|
||||||
|
| Balise fermante de la première condition | `/when` |
|
||||||
|
| Balise ouvrante de la deuxième condition | `when test="v.person.age >= 18 and v.person.age < 65"` |
|
||||||
|
| Balise fermante de la deuxième condition | `/when` |
|
||||||
|
| Balise restante | `otherwise test=""` |
|
||||||
|
| Balise fermante de la troisième condition | `/otherwise` |
|
||||||
|
| Balise fermante | `</choose>` |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Boucles
|
||||||
|
|
||||||
|
| Balise | Contenu |
|
||||||
|
| --- | --- |
|
||||||
|
| Balise ouvrante de la boucle | `for each="m in v.loop"` |
|
||||||
|
| Balise fermante de la boucle | `/for` |
|
||||||
|
|
||||||
|
Exemple:
|
||||||
|
|
||||||
|

|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user