42
Comments
  • 1
    <?=$isBlocked?"B":"Unb"?>locked
  • 2
    @kenogo More like characters since it'd normally also use just one line:

    echo ($isBlocked) ? 'Blocked' : 'Unblocked';
  • 0
    I, for one, would probably use proper templating system instead of echo'ing AND translations ;)
  • 0
    print(f"{'B' if is_blocked else 'Unb'}locked")
Add Comment