First draft of ifthen binding