How do I get a returned value from Script Add-ins

I have a Script Add-in that I want to run another Script Add-in. I would like to be able to get a returned value back. Not sure how to do that.

Is it this simple?
var results = cmd.Runcommand("someScriptAddin");
Assuming that the "someScriptAddin" has a "return value;"

I found this question that seems the same as mine but I couldn't understand their post or the response. How does a custom command return a value to other commands?

Sorry, I could test this out first but I am not that good of a programmer so it would probably take me 10 or 15 minutes and I still wouldn't know if I was doing it wrong or if it was just impossible.

Edit: After more research it seems that maybe I should store the date in vars https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/Vars.htm
In the link I provided earlier Leo said,

Scripts can set variables with other commands can then use.
But it's often easier to make the script itself run the other commands.

I am not sure if he is recommending vars or is against it.

No.

:cold_sweat: