I'm new to javascript and trying to understand the purpose/logic of the "?" in a javascript formula.
This is from a calculated field in a PDF form. I've searched javascript resources online and cannot find a definition or context for the logic.
Example:
event.value= this.getField("lebT1").value * (amt >= 250000 ? 250000 : amt) * (1 - this.getField("txtDiscPct").value * 0.01);
Also...
fee += amt < 0 ? 0 : ((amt > 500000 ? 500000 : amt) * eb2);