Question about displaying text based on conditional

This is a two part question.

Question 1

I want to display text based on what is resolved within this part


feedback.htmlText +="<font color='#fc0c33'>Your score is "+Math.round(score*100)+"%</font>."

so it would be


if "+Math.round(score*100)+"% > 80 {
"you passed"

}
 else {
"you failed"
}

I know this is not right, but this is what I am trying to do. Have always done this in PHP previously, not AS3.

second gotcha is I am already using an else if to display the message window with which I want to place this conditional.


else if (type == "success") {
                feedback.htmlText = "Congratulations! You have completed the Nestle Nutrition Pre-Training Validation Exam.<br><br>"

                 feedback.htmlText +="<font color='#fc0c33'>Your score is "+Math.round(score*100)+"%</font>."
                
                feedback.setTextFormat(format);
                addChild(feedback);


so I don’t know if you can place and if else within an elseif, or how I can I accomplish this. Any assistance would be greatly appreciated.