Sunday, October 11, 2009

Curly braces

Generally speaking, anything that falls between opening and closing curly braces signifies an action or actions the script needs to perform when triggered. Think of curly braces as being used to say, "As a result of this – {do this}." For example:on (release) {
//set the cost of the mug
mugCost = 5.00;
//set the local sales tax percentage
taxPercent = .06;
}

0 comments:

Post a Comment