I understand this may sound like a weird question, but bear with me here, OK?
I'm getting ready to teach some kids introductory computer programming. We're going to use Scratch, a drag-and-drop "brick-based" language designed by MIT.
Now, scripts in Scratch are comparable to LEGO structures. Each script needs a base, and pieces to build it up. So far, so good.
However, scripts can also contain conditionals and loops, both of which accept a sub-structure.
I would like to show my students a LEGO structure that is comparable to a Scratch script. How could i do something like conditionals and loops?