https://onezeronull.com/2009/02/21/ternary-operator-in-javascript-php-and-in-delphi/
Ternary operator in Javascript, PHP and in Delphi