created builtin if function