add ifElse test
add while test