ternary opertator with isset and condition code example Example: ternary in php print ($marks>=40) ? "pass" : "Fail";