Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I'm not against a IF statement, but in your case you just need to put those things in a 'do until hands full' and/or  'do until hands empty'.

I feel like a "Do Until Stuck" would be a far more useful and easier to implement solution to most of the examples of wanting an If statement.

Using Do Until Stuck you could plant apple seeds as long as there were holes for seeds; and then start putting them away. Without trying to craft a balance of bots re-planting apple seeds and bots stowing them.

You could actually use Do Until Stuck to emulate most IF statements you'd want to create. - Give me an example of an IF and i'll show you how :).

(This is actually a practice i made when programming IRL; in highly nested loops sometimes avoiding if statments to reduce processing is good.)

- Clarification: - Do Until Stuck would attempt to do the things inside; until the robot would put that timer over his head. Instead of putting the timer over his head; he'd skip the loop. Edit: It could also be called Do Until Waiting if that makes more sense :).