Scense Administrator Guide

⌘K
  1. Home
  2. Docs
  3. Scense Administrator Guid...
  4. Advanced Task Structures
  5. Resolving Variables

Resolving Variables

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:

  1. Site parameters
  2. Scense internal variables
  3. Command line parameters
  4. Query variables
  5. Function variables
  6. 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.