ActionScript 3.0 Lesson 15: Compound Conditionals and the Else Statement, AND and OR in ActionScript

Sun, Aug 16, 2009

ActionScript


On this basic action script tutorial Avraham creates a variable that checks the price of a car in order to demonstrate the AND, OR and ELSE statements on Action Script 3.0

DOWNLOAD THIS TUTORIAL TO YOUR HARD DRIVE

HERE IS THE SCRIPT SOURCE CODE

// Compound Conditional Statments
// Else statement on Action Script 3.0
// by Avraham Saltoun
// solutions at say-web dot com
// free to use and distribute
// no copyrights attached

var myCarPrice:Number=500;

//now let’s check the price….

if (myCarPrice==1000 || myCarPrice==500) {

trace (“The price is barely on my limit!”);
}
else {

trace(“is far from the limits…”);

}
// The || demands either (OR) conditions to be TRUE
// equals 500 or 1000… let’s see!
//Thanks for watching!

Related Articles:

, , , , , , , , , , , ,

Leave a Reply

You must be logged in to post a comment.

My name is Avraham Saltoun, and I live in Jerusalem, Middle East. I am currently on my mid  40's and I am a computer programming technician. Here you will find over one hundred quality video tutorials on Actionscript, and yes, I give online support for aspiring programmers, and pros as well, sharing screen on skype and delivering source code by email, click the button for live flash actionscript support now!

 
oDesk Certified Action Script Programmer
oDesk Certified Adobe Flash CS3 Designer
oDesk Certified Adobe Photoshop 6.0 Designer
Skype Me™!

$7.49 .Com! Score Savings Cartoon Smart Tutorials


1,260
Unique Visitors
Previous 30 Days
Powered By Google Analytics