If we had a way to cut executing a function short early, it will allow us to stop nesting conditionals as much. We've seen some crazy nested conditionals in the examples, it would be nice to have an alternative method that is cleaner in the editor.
I'll edit in an example soon.
Edit: Haha, almost 3 weeks later and I remember this request
// Without return, 3 levels on tick do cooldown-- if cooldown == 0 then // Fire a bullet cooldown = 20 end end // With return, 2 levels on tick do cooldown-- if cooldown != 0 then return end // Fire a bullet cooldown = 20 end
It's been added! Playdate PulpScript