User Tools

Site Tools


xrpl:repeat

Differences

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

Link to this comparison view

xrpl:repeat [2019/03/04 00:57] – created Karsten75xrpl:repeat [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
- 
-=====  repeat   ===== 
- 
-^Arguments^Result^Notation^ 
-|bool| | [bool-] | 
- 
- 
-=== Description === 
-Pops an item from the stack. If true, execute the following statements. If false, jump to the statement following 'endwhile' 
- 
-=== Examples === 
-<code prpl>5 -> 
-while  
- <-y gt(0) #is y greater than zero?  
-repeat #repeat this section of code  
- trace(<-y)  
- <-y sub(1) ->y #subtract 1 from y so we don't end in infinite loop  
-endwhile  
-</code> 
  
xrpl/repeat.1551661063.txt.gz · Last modified: 2025/02/14 14:56 (external edit)