unloop  ( -- )

published: 23 January 2022 / updated 16 February 2022

Lire cette page en français

 

vocabulary: forth

Stop a do..loop action. Using unloop before exit only in a do..loop structure.

Example:

: example ( -- ) 
    100 0 do 
        cr i . 
        key bl = if 
            unloop exit 
        then 
    loop 
  ; 

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