Variable Settings

For an overview of Variables, click here.

Deep Learning on Variables is found in Motive Academy. Click here to see the course this lesson is in.

 

When creating a Variable, you can choose from the following options:

Value Definitions

 

2024-03-05_13-42-52.jpg

Primitive - NOT SET: type of primitive Variable is not yet defined

Primitive - Boolean: a Variable that has two values, true or false

Primitive - String: a Variable whose value is a word (or "string" of characters)

Primitive - Date & Time: a Variable whose value is formatted and recognized as a day and time

Primitive - Time Span: a Variable whose value is a length of time (eg: 2 hours, 3 minutes and 14 seconds)

Primitive - Number (Float): a Variable whose value is any real number (can include decimals).

Primitive - Number (Int): a Variable whose value is an integer (positive, negative, and 0 included). Integers are whole numbers (no decimals allowed).


 

2024-03-05_13-43-58.jpg

Enum: Used to create a Variable that has a list of options or states. 


2024-03-05_13-37-18.jpg

A. isGlobal: By checking this option, you are able to use this Variable in any other script in your project.  The next time you return to the Variables menu, you will see your Global Variable available to be chosen.

B. isInput: When you make a Variable an input, you automatically create a template script that accepts a value for this Variable as an input. A template script is a reusable script that accepts inputs. 

C. isOutput: It lets a Script send a value back into the Script that called it.  If you add an output Variable to Script A then use a Script Launcher that launches Script A from Script B you'll see the outputs added to the bottom of the launcher.


Related Articles

Create a Variable

Dynamic Variables: The Basics