Changed to Ternary

changed if to Ternary in personal