add IfThen
support if-then-else