In a SmartPy smart contract, is there 'continue' or 'break' for loop?
When I use 'continue' for loop, an error occurred. 'Error: invalid syntax'
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.
Sign up to join this communityIn a SmartPy smart contract, is there 'continue' or 'break' for loop?
When I use 'continue' for loop, an error occurred. 'Error: invalid syntax'
There is no sp.continue
or sp.break
inside a sp.for
at the moment.
We may add that in the future.
Please keep in mind that iterating on non trivially small lists is usually a bad idea inside a smart contract.