Chaining if statements
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var greeting; var language = "english"; if (language == "english") { greeting = "Hello"; } else if (language == "japanese") { greeting = "Konnichiwa"; } else if (language == "french") { greeting = "Bonjour"; } else if (language == "german") { greeting = "Guten tag"; } else { } trace(greeting); } } }