Hi,
Is it possible to use a global variable in a distribution
script? I tried something simple along the lines of below, but the
install.log shows the variable as ‘undefined’...
var globalVariable;
function a()
{
globalVariable
= true;
system.log('
globalVariable = ' + globalVariable); //Install.log says globalVariable =
true
}
function b()
{
system.log('
globalVariable = ' + globalVariable); //Install.log says globalVariable = undefined
}
Thanks
Dave
Promethean Limited is a company registered in England and Wales with company number 1308938 and VAT number GB 572 2599 18
Promethean Ltd and or associated and or subsidiary companies : The views expressed in this communication may not necessarily be the views held by Promethean Ltd and or associated and or subsidiary companies.
This e-mail is for the exclusive use of the addressee(s). Unauthorised disclosure, copying or distribution is prohibited.
This e-mail message has been swept for the presence of computer viruses.
Promethean Ltd and or associated and or subsidiary companies accepts no liability for any loss resulting from this email transmission
Promethean, Promethean House, Lower Philips Road, Blackburn, Lancashire, BB1 5TH, UK.
|