This shows you the differences between two versions of the page.
fr:ifthen [2016/01/01 22:44] |
fr:ifthen [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== If / Then ===== | ||
+ | ==== Format ==== | ||
+ | **if** // | ||
+ | ---- | ||
+ | **if** // | ||
+ | // | ||
+ | **end if** | ||
+ | ---- | ||
+ | **if** // | ||
+ | // | ||
+ | **else**\\ | ||
+ | // | ||
+ | **end if** | ||
+ | |||
+ | ==== Description ==== | ||
+ | un **if** (si) en une ligne évalue l'// | ||
+ | Il existe aussi deux autre formes de **if** (si) sur de multiple-lignes, | ||
+ | ==== Exemple ==== | ||
+ | < | ||
+ | print " | ||
+ | # Attend que l' | ||
+ | do | ||
+ | a = key | ||
+ | pause .01 | ||
+ | until a <> 0 | ||
+ | # | ||
+ | if chr(a) = " | ||
+ | print " | ||
+ | else | ||
+ | print "Eh non, c'est pas ça." | ||
+ | end if | ||
+ | # | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | ==== Disponible depuis la version ==== | ||
+ | 0.9.4g | ||