Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Actions Script Syntax problem 1

Status
Not open for further replies.

GeeBee2

Technical User
Aug 29, 2005
12
US

ok I have syntax problem, I get an error can't find the matching if....I am a newbiew with action script so please be gentle! Thanks in advance for any help


if (userscore<84) {
comment6 = +firstname+", you answered "+numOfQuestionsAnsweredCorrectly+" % "+"of the answers right. Please study more and retake in 10 days.";
}
trace(finaresult)
else if ((userscore>85)){
comment6 = "CONGRATULATIONS! "+firstname+" You answered "+numOfQuestionsAnsweredCorrectly+" % "+" of the answers right. Congratulations on becoming Certified. You will recieve your official Certified Certificate in the mail soon.";
}
 
It's probably because you have a trace statement between the if statement and the else statement.
 


Thanks wangbar, trace statements work fine. I forgot to put } in front of the else if statement. It works fine now..thabs for the reply though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top