Skip to content

Javascript Variables

var-badge.svg

In Situate, fields with this badge accept variables.

A variable is used to hold a value that is passed from one place to another. In Situate, variables hold Javascript primative values such as number or objects.

Variable Names

Variables must start with a letter, dollar sign ($) or underscore (_), and can be followed by letters, numbers, the dollar sign or underscore. By convention, the first letter is always lower case (but it's not required). This helps distinguish variables from classes which, by convention, start with an upper case letter.

Some examples are:

  • a
  • company
  • x1
  • x_10
  • $10

NOT allowed:

  • a b   (NOT ALLOWED)
  • a-b   (NOT ALLOWED)
  • 10x   (NOT ALLOWED)

Workload Automation and Orchestration