I was wondering what the equivalent of a 'then' statement is in Greenfoot.
I have an if statement but with more than one output e.g. if this is true do this, then this and finally this.
What would be a suitable way of writing this in code?
if(condition) { //do this if true } else { //do this if false }
if(condition) { System.out.println("hello"); System.out.println("I'm here"); System.out.println("Goodbye"); }