Example – Return multiple values from a function in SE

1 62 Views No Comments 2 months ago
  • Example – Return multiple values from a function in SE

    HaasScript Code
    function getTuple(x, y)
        return x, y
    end
    
    local x, y = getTuple(10, 40)
    
    Log(x) -- output: 10
    Log(y) -- output: 40
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free