Jump to content
  • 0

How to return Value in function?


ShuShiXyz

Question

Posted

I want to get status value return to function or How to get status value

emcollect2 = {bp = {status = on}}

function emcollect(path)
return emcollect2[path].status.value
end

function EM2()
a2 = gg.choice({
emcollect("bp").."Big Pan"})
end

 

 

2 answers to this question

Recommended Posts

Posted
emcollect2 = {bp = {status = "[On]"}}

function emcollect(path)
  return emcollect2[path].status
end

function EM2()
  local a2 = gg.choice({emcollect("bp") .. " Big Pan"})
end

EM2()

Is this what you need?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.