Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

For an Overview of Enums, click here.

Panel
panelIconId1f393
panelIcon:mortar_board:
panelIconText🎓
bgColor#4C9AFF

To practice using Enums, in Motive Academy there is a course creating Hints for the learner.

Table of Contents
minLevel1
maxLevel7

...

Definition

The term "enumEnum" is short for "enumerated list". It is a common programming term that simply means a user-defined list.

Use

You would use an enum Enum if you would like to create a variable Variable that has a list of options or states.

Create an Enum

...

Location

You can access your Enum list by using the last icon on the far right of the screen:

...

...

2. Under Space Enums, click into the field New Enum Name and give. your Enum a title, then hit enter. In this example, I’ve named the enum “Server Rack Position::

...

3. To create the items in the list, ensure the arrow next to the new name is pointed downwards and then give the first item a name in the New Enum Item Name field:

...

In this example I’ve named it “In” and then hit enter when you are done typing. Do the same for any additional items.

Now you have an enum you can use in a Variable:

...

Related Articles

Create an Enum

Create a Variable using Enums

Use an Enum to Track a State in a Behaviour Model