I would like to know the meaning of two symbols "?" and ":" in JavaScript. I think it is related to logical values, like (var ? false: true) but I am not sure about this.
Here goes an example of a function where this is used.
function KeyPadOpen(obj, opt) {
var recon = parseInt(document.getElementById('enc_porta').getAttribute("recon"));
var config = parseInt(document.getElementById('enc_porta').getAttribute("config"));
var hidePad = (recon == 1 || config == 1);
KeyPadClear(hidePad, true);
document.getElementById('enc_porta').setAttribute("config", (hidePad ? 0 : 1));
}
hidePad is an argument of a second function.