AI2 equivalent for this Pseudocode

Is there an AI equivalent for this

{do until {Goal reached)

move forward 4 }

I'm assuming, you want to show each of the positions?
in case of yes, see The model of event processing in App Inventor by Lyn and use the clock component for this...

this could be the Clock.Timer event:

if position < goal
then position = position + 4
else timer enabled = false, "you reached the goal"


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Here's the event based approach to this ...

1 Like

Thanks @ABG and @Taifun. That's all I needed to know!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.