User Tools

Site Tools


crpl:docs:while

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:while [2013/01/14 14:12] – external edit 127.0.0.1crpl:docs:while [2021/02/05 11:43] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
  
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#flow_control|Flow Control]]
 =====  while  ===== =====  while  =====
  
Line 12: Line 13:
 === Examples === === Examples ===
 <code> <code>
-# outputs a set of sescending numbers on the trace stack +# outputs a set of descending numbers on the trace stack 
 ShowTraceLog  ShowTraceLog 
 ClearTraceLog  ClearTraceLog 
-5 ->y #create temp varialble "y" +5 ->y #create temp variable "y" 
 while <-y 0 gt # is y greater than zero?  while <-y 0 gt # is y greater than zero? 
  repeat #repeat this section of code   repeat #repeat this section of code 
Line 22: Line 23:
  endwhile #rinse and repeat until y is zero.  endwhile #rinse and repeat until y is zero.
 </code>  </code> 
- 
  
crpl/docs/while.1358190732.txt.gz · Last modified: 2014/10/01 15:02 (external edit)