fixed ternary conditional

i swear to god i actually am retarded