This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Curious about the operation of this script
#2
You don't need to create a function for this, just use math.max instead. It accepts any number of arguments, not just 2.

As for your second example, you assign 4 to max variable. 10 is not assigned to any variable. You can assign multiple variables this way but you need to specify them like this:
Code:
a, b = 4, 10
log(a, b)
Reply


Messages In This Thread
RE: Curious about the operation of this script - by admin - 07.08.2020, 12:14

Forum Jump: