Ternary to If-else
This free online tool allows you to convert ternary conditional operators into if statements.
Ternary:
firstCheck ? "Access denied" : secondCheck ? "Access denied" : "Access granted"
Convert
If else: