User Tools

Site Tools


xrpl:endwhile

This is an old revision of the document!


endwhile

ArgumentsResultNotation
[ - ]

Description

Returns execution to the 'while' statement. Note that endwhile is only executed, if 'repeat' evaluated to true.

Examples

5 ->y 
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 
xrpl/endwhile.1551650286.txt.gz ยท Last modified: 2019/03/03 16:58 by Karsten75