Skip to content

Instantly share code, notes, and snippets.

@Kilobyte22
Last active August 29, 2015 14:03
env.namespace:defineFunction('if', function (scope, args)
args.autoeval = false
if args:arg(1):eval(scope):toBool() then
return args:arg(2):eval(scope)
else
return args:arg(3):eval(scope)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment