I’m trying to check if a variable exists in the LMS (BrainHoney) that our school is using. The variables are surrounded by dollar signs. In order to see if the variable is in use I would like to try an if statement to the effect of alert(“$Hello$” == “& #36;Hello& #36;”);
If the variable wasn’t in use, $Hello$ would remain $Hello$ instead of being replaced by a different string of text.
Unfortunately this returns false because they are not the same. What should I change so that if the LMS leaves the text string as $Hello$ that I could check for it?
Use the ascii value of $ in octal escaped by javascript.
Or:
This is the ascii value of $ in hex, escaped by the html.