This shows you the differences between two versions of the page.
xrpl:while [2019/03/04 01:27] – created Karsten75 | xrpl:while [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | ===== while ===== | ||
- | |||
- | ^Arguments^Result^Notation^ | ||
- | | | | [ - ] | | ||
- | |||
- | |||
- | === Description === | ||
- | Beginning of a while loop. The statements between a ' | ||
- | |||
- | === Examples === | ||
- | <code prpl>5 -> | ||
- | while | ||
- | <-y gt(0) #is y greater than zero? | ||
- | repeat #repeat this section of code | ||
- | trace(< | ||
- | <-y sub(1) ->y #subtract 1 from y so we don't end in infinite loop | ||
- | endwhile | ||
- | </ | ||