commandes:condition
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
commandes:condition [2007/12/17 23:51] – créée frostfall | commandes:condition [2022/09/25 19:11] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
===== Syntaxe ===== | ===== Syntaxe ===== | ||
La syntaxe est la suivante : | La syntaxe est la suivante : | ||
Condition(' | Condition(' | ||
+ | |||
===== Explications ===== | ===== Explications ===== | ||
- | Cette fonction permet | + | Cette fonction permet |
- | {{commandes: | + | Les conditions peuvent être aussi variées que les conditions de déclenchements basiques d'un évènement. |
+ | |||
+ | < | ||
===== Exemple ===== | ===== Exemple ===== | ||
- | Message(' | + | < |
+ | <style type=text/ | ||
+ | TEXTAREA { | ||
+ | background-color : white; | ||
+ | font-family : MS Sans Serif; | ||
+ | font-size : 8px; | ||
+ | } | ||
+ | </ | ||
+ | < | ||
+ | <table cellspacing=2> | ||
+ | <tr height=25>< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | Appuie sur bouton | ||
+ | Attaque | ||
+ | </ | ||
+ | </ | ||
+ | <td width=20> | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Un autre exemple ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <table cellspacing=2> | ||
+ | <tr height=25>< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | Appuie sur bouton | ||
+ | </ | ||
+ | </ | ||
+ | <td width=20> | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Particularités ===== | ||
+ | ==== Utilisation de Condition dans un OnResultQuery ==== | ||
+ | Si vous avez besoin d' | ||
+ | |||
+ | Variable[13]=%rand(2)% | ||
+ | InputQuery(' | ||
+ | OnResultQuery(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | QueryEnd | ||
+ | Variable[13]=0 | ||
+ | |||
+ | Doit s' | ||
+ | Variable[13]=%rand(2)% | ||
+ | InputQuery(' | ||
+ | OnResultQuery(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | QueryEnd | ||
+ | Variable[13]=0 |
commandes/condition.txt · Dernière modification : 2022/09/25 19:11 de 127.0.0.1