That's really only if you want to practice Python a bit, outside of Blender's context. But yeah, my example above is just a conditional branch. Obviously, you can get a bit more complicated by defining functions and the like.
I still can't get past "falling cube" with Blender, however