package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var nValue:int = 10; if(nValue < 10 && nValue > -10) { // Code goes here. } //can be rewritten in the following way using the abs() method: if(Math.abs(nValue) < 10) { // Code goes here. } } } }