create the ternary operation for the If and ELSE statement, tested, works fine.