Type Function Library composer.* Return value various Revision Release 2023.3686 Keywords composer, scene, getVariable See also composer.setVariable()
Retrieves the value of a variable from within the Composer module that was previously set via composer.setVariable().
composer.getVariable( variableName )
String. The name of the variable previously set via composer.setVariable().
-- Set the Composer variable "money" to 100 composer.setVariable( "money", 100 ) -- In another scene... local currentMoney = composer.getVariable( "money" )