you may need to do the 'CDATA' (if you done this directly yourself within the code ~ if using the GUI~Editor it will do the 'CDATA' for you automatically and hiddenly: you don't see it being done), I'm just not familar with how the html formatting (line breaks and etc, like the <br/>) works, if you need the 'CDATA', just enclosing it within the double quotes, or if you need both the double quotes and 'CDATA' tags enclosing the (for example) <br/> (and other html formatting tags).
normally, for like using the greater than and etc operators (<, >, >=, <=, and also the 'not method B' operator of: <>), you need the 'CDATA' tags encasing the scripting (script lines which contain the '<' and~or '>' characters~symbols), but I've no idea if the use of the html formatting stuff (like the <br/>) works in the same way or not.
-----------------------------------
MY EXPLANATION ATTEMPT (lol) of it for you XanMag:
------
in code, these symbols~characters:
< and >
are used for two different things (aka: telling quest what they're being used for):
1. the html 'creation' tags (the creation of Quest's Elements):
<asl version="550">
</asl>
<game name="xxx">
</game>
<object name="xxx">
</object>
<function name="xxx">
</function>
<command name="xxx">
</command>
<turnscript name="xxx">
</turnscript>
<timer name="xxx">
</timer>
<type name="xxx">
</type>
<attr name="xxx" type="xxx">
</attr>
2. scripting operators:
greater than: >
example: if (student.score > 90) { student.grade = "A" }
greater than or equal to: >=
lesser than: <
lesser than or equal to: <=
not (alternative B): <>
-----------
(AGAIN, only when you yourself are directly typing in the code, in code: aka when NOT using the GUI~Editor)
without the 'CDATA' tags, quest sees the '>' in (an example):
if (student.score > 90) { student.grade = "A" }
as an ending 'creation' tag, and so it looks for the beginning creation tag as well as the syntax needed, which it obviously doesn't find, and thus gives the error, of having your syntax or character~symbol out of place, aka ~ "error: missing token: blah"
-------
(AGAIN, only when you yourself are directly typing in the code, in code: aka when NOT using the GUI~Editor)
with the 'CDATA' tags:
<![CDATA[[
if (student.score > 90) { student.grade = "A" }
]]>
quest now correctly sees the '>' character~symbol in:
if (student.score > 90) { student.grade = "A" }
correctly, as a greater than symbol~character operator, as it is suppose to be seen as
-----------------
ERROR:
<function name="set_student_grade_function" parameters="student">
if (student.score > 90) {
student.grade = "A"
} else if (student.score > 80) {
student.grade = "B"
} else if (student.score > 70) {
student.grade = "C"
} else if (student.score > 60) {
student.grade = "D"
} else {
student.grade = "F"
}
</function>
vs
NO error:
<function name="set_student_grade_function" parameters="student"><![CDATA[
if (student.score > 90) {
student.grade = "A"
} else if (student.score > 80) {
student.grade = "B"
} else if (student.score > 70) {
student.grade = "C"
} else if (student.score > 60) {
student.grade = "D"
} else {
student.grade = "F"
}
]]></function>
or, if it's easier to see, a separated format for you (either format works, most people here, including me, use the format above):
[code]<function name="set_student_grade_function" parameters="student">
<![CDATA[
if (student.score > 90) {
student.grade = "A"
} else if (student.score > 80) {
student.grade = "B"
} else if (student.score > 70) {
student.grade = "C"
} else if (student.score > 60) {
student.grade = "D"
} else {
student.grade = "F"
}
]]>
</function>