remove inline ifelse for better maintail

remove the inline ifelse crap
.= <--- fucking usefull operator


untested please test run it.
there is no open {, but you close it here. plz fix indentation