The Scense system will automatically resolve any variable when used in Actions and Criteria.
In Scripting Actions the ReplaceVariables() function can be used to explicitly resolve one or more variables in a string of text (see the Scense Embedded Scripting Guide).
Scense will try to resolve a variable using multiple providers:
- Site parameters
- Scense internal variables
- Command line parameters
- Query variables
- Function variables
- Environment variables
The above order is fixed which means that in cases where there are equally named variables of different providers the first variable found with a matching name will be used.
This also means that e.g. Scense internal variables or environment variables can be overridden by Site Parameters.