hi guys
i have this piece of code which has this complex if else condition which i could'nt understand. Please help
<script>
var _T = "locked";
var _F = "unlocked";
function lockIt(_P) {
var _L = document.frmForm.lck.value;
if (_L==_P) return;
document.frmForm.cboSelect.disabled=(document.frmForm.lck.value=(_L==_F)?_T:_F)==_T;
//the last line is what i don't understand
}
i have this piece of code which has this complex if else condition which i could'nt understand. Please help
<script>
var _T = "locked";
var _F = "unlocked";
function lockIt(_P) {
var _L = document.frmForm.lck.value;
if (_L==_P) return;
document.frmForm.cboSelect.disabled=(document.frmForm.lck.value=(_L==_F)?_T:_F)==_T;
//the last line is what i don't understand
}