It's hard for me to write down what seems like a simple expression! I need him to say that if mod is not equal to a, b or c - then do it. Here is what I tried, but failed:
var mod = CURRENT_MODULE_ID;
if (mod != "5827289" && mod != "5195103" && mod != "5181422") {
doSomething();
}
When I introduce it into my editor, he says that there is an error, in particular that "the name of the object should immediately follow the" & "in the entity reference." .. and does not work when I go to the test.
Any help is appreciated!
UPDATE: URL: esber.squarespace.com
Full script:
<script type="text/javascript" src="/storage/scripts/sessvars.js"></script>
<script type="text/javascript">
<![CDATA[
onload=function(){
sessvars.browserConfirmation?'none':'';
sessvars.ageConfirmation?'none':'';
};
var mod = Squarespace.Constants.CURRENT_MODULE_ID;
if (mod != "5827289" && mod != "5195103" && mod != "5181422") {
if(sessvars.ageConfirmation != "yes"){
window.location = "/verify/";
};
};
]]>
</script>
, , (/), " " (/ ) page (/login) - sessvars, .
, esber.squarespace.com ( , ) - /verify, .
script :
<script type="text/javascript" src="/storage/scripts/sessvars.js"></script>
<script type="text/javascript">
onload=function(){
sessvars.browserConfirmation?'none':'';
sessvars.ageConfirmation?'none':'';
};
var mod = Squarespace.Constants.CURRENT_MODULE_ID;
if (mod != "5827289") {
if(sessvars.ageConfirmation != "yes"){
window.location = "/verify/";
};
};
</script>
(?)