Not accepting JavaScript && function
I am customizing a topic in RH (2020.4.173 version) which requires typing in a JavaScript function that uses the operator &&, but the system will not allow me to use it because it says that & is an "invalid character".
Is there another way of expressing the logical AND function in RoboHelp? BTW, this was not a problem with the same function and the same topic in RH2019.
This is the function:
function threeShow(card01, card02, card03) {
var a = document.getElementById(card01);
var b = document.getElementById(card02);
var c = document.getElementById(card03);
if (a.style.display == "none" && b.style.display == "none" && c.style.display == "none") {
a.style.display = "block";
b.style.display = "block";
c.style.display = "block";
} else {
if (a.style.display == "block" && b.style.display == "block" && c.style.display == "block") {
a.style.display = "none";
b.style.display = "none";
c.style.display = "none";
}
}
}
