NSOA.context.getAllParameters()
Use this function to get an Associative Array of all the script parameters and values set for the script.
See Script Parameters.
Parameters
-
(none)
Returns
-
An Associative Array of all the script parameters and values for the script.
Units Limit
-
10 units
For more information, see Scripting Governance.
Since
-
April 18, 2015
Example
-
This example creates a local variable called allParams with an Associative Array of all the script parameters and values for the script. It then uses a for in loop to log each parameter name and current value.
// Get all the parameters available for the script var allParams = NSOA.context.getAllParameters(); // Loop through all the parameters for (var key in allParams) { NSOA.meta.alert(key + ' has value ' + allParams[key]); }
See also NSOA.context.getParameter(name).