IMO, you should never do more than a couple nested
ternary operators. If you need to do more than that, you should switch to an if-else-if structure to decide which one you will use and then pass the chosen one to formatex().
Using too many nested ternary operators unnecessarily obfuscates the code making it very difficult to understand.
__________________