CASE  ( -- )

publication: 8 novembre 2022 / mis à jour 10 novembre 2024

Read this page in english

 

vocabulaire: forth

Marque le début d'une structure CASE OF ENDOF ENDCASE

Exemple:

: day ( n -- addr len ) 
    CASE 
        0 OF s" Sunday"     ENDOF 
        1 OF s" Monday"     ENDOF 
        2 OF s" Tuesday"    ENDOF 
        3 OF s" Wednesday"  ENDOF 
        4 OF s" Thursday"   ENDOF 
        5 OF s" Friday"     ENDOF 
        6 OF s" Saturday"   ENDOF 
    ENDCASE 
  ; 

Legal: site web personnel sans commerce / personal site without seling