Gosu conditional execution and looping

Gosu uses the multiple constructions to perform program flow, including the following:
  • if...else statements
  • for statements
  • while statements
  • do...while statements
  • switch statements

Each of these statement types provides a different type of program control flow. However, all work by first determining whether an expression is true or false, then using that information to determine subsequent program action.