generally support if-then-else and case in query and obs

add whether in randFuncBody tag in caseSpec