is it safe to catch only one VAR from return(a, b)?
Posted: Mon Nov 23, 2020 12:59 pm
I couldnt find this mentioned in documents, so here an example code:
Question is, is this a safe way to catch value of only "a" or should I always use something like: "c, d = test()" when returning two or more values at same time?
Code: Select all
Function test()
Local a = 1
Local b = 2
Return(a, b)
EndFunction
c = test()
DebugPrint("c:"..c)