Skip to main content
All CollectionsActions & Writeback
Creating variables to use with objects
Creating variables to use with objects

Create boolean, number and string variables to use with objects on your dashboard.

Piers Batchelor avatar
Written by Piers Batchelor
Updated over 7 months ago

Using variables in Astrato

You can use variables in Action flows and add interactions by changing a layer's visibility.

Variables can act as containers to help you make changes across your data, where a single change to the variable is enough; you don't need to change an item or data object.



Types of variables

In Astrato, you can store boolean, number, and string variables.

  • Boolean variables have only two possible values: true or false. They're most commonly used with control statements to determine the flow.

  • Number variables are used to store numeric information. Use them to perform equations or comparisons.

  • String variables hold a sequence of characters, such as letters, words, phrases, or symbols. They're used to store text, for example, a sentence or paragraph or even a single character.

    • String sub-types - the default type is plain text, but you can also enter a SQL query.

Creating variables

  1. Open your workbook from the toolbar on the left, and click the Variable icon.

  2. Click the Add Variable button from the menu that displays

  3. Enter a name for the variable

  4. Select variable type

    1. Boolean - select True or False

    2. Number - enter the number

    3. String variables - enter the text, or click More to classify the variables as plain text or a SQL query in the expanded field.

Variables options highlighting the More button displayed with String variables.

Figure 1: Variables options highlighting the More button displayed with String variables.

Use this field to enter String variables

Figure 2: Use this larger field to select and enter String variables.

Suggested use cases

Data-driven benchmarking

Watch the chart react as the target for fuel efficiency is updated. Variables were been used in:

  1. Conditional coloring

  2. Reference lines

See the video to learn how to setup a data driven reference line.

Did this answer your question?