en:yaml:conditions
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| en:yaml:conditions [2026/05/03 18:47] – Harmonize FR/EN language switch cyrilfiesta | en:yaml:conditions [2026/10/19 22:45] (Version actuelle) – Comparaisons de texte sans distinction de casse cyrilfiesta | ||
|---|---|---|---|
| Ligne 17: | Ligne 17: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | |||
| + | ===== Compare Text ===== | ||
| + | |||
| + | Text comparisons with '' | ||
| + | |||
| + | List operations ('' | ||
| ===== Compare Two Variables ===== | ===== Compare Two Variables ===== | ||
| Ligne 22: | Ligne 28: | ||
| <code yaml> | <code yaml> | ||
| if: " | if: " | ||
| + | </ | ||
| + | |||
| + | Or: | ||
| + | |||
| + | <code yaml> | ||
| if: " | if: " | ||
| </ | </ | ||
| Ligne 40: | Ligne 51: | ||
| <code yaml> | <code yaml> | ||
| if: " | if: " | ||
| + | </ | ||
| + | |||
| + | Or: | ||
| + | |||
| + | <code yaml> | ||
| if: " | if: " | ||
| </ | </ | ||
| Do not use '' | Do not use '' | ||
| + | |||
| + | ===== Events ===== | ||
| + | |||
| + | <code yaml> | ||
| + | events: | ||
| + | - if: " | ||
| + | to: game_over | ||
| + | text: "You died..." | ||
| + | - if: " | ||
| + | text: "You are badly wounded!" | ||
| + | - if: ~ | ||
| + | to: next_room | ||
| + | </ | ||
| + | |||
| + | Events are evaluated in order. The first event that redirects with '' | ||
| ===== Choices ===== | ===== Choices ===== | ||
| Ligne 78: | Ligne 109: | ||
| The first true block is displayed. | The first true block is displayed. | ||
| + | |||
| + | ===== See also ===== | ||
| + | |||
| + | * [[en: | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | |||
en/yaml/conditions.1777826862.txt.gz · Dernière modification : de cyrilfiesta
