Script: implement IfExpression