
EN: rebol.com -
rebol.org -
rebol.net -
FR: Rebol Documentation Project -
forum RebelBB -
rebol-france.org -
forum codeur -
Sortir de la fonction en ne retournant aucune valeur.
exit
La fonction EXIT est utilisée pour sortir d’une fonction sans retourner une valeur.
test-str: make function! [str] [ if not string? str [exit] print str ] test-str 10 test-str "right" right
Note: Utiliser QUIT pour sortir de l’interprète.
break - Casse une boucle, while, until, repeat, for, etc…
catch - Attrape un throw depuis un bloc et retourne sa valeur.
return - Retourne une valeur depuis une fonction.