leave  ( -- )

published: 22 January 2022 / updated 16 February 2022

Lire cette page en français

 

vocabulary: forth

Prematurely terminates the action of a do..loop loop.

Example:

256 string LoRaRX 
s" +RCV=55,27,this is a transmission test,-36,40" LoRaRX $! 
 
: scan$ ( char addr len -- ) 
    0 do 
        2dup i + c@ = if 
            i cr . 
            leave 
        then 
    loop 
    2drop 
  ; 
 
 
char , LoRaRX scan$ 

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