...
Info |
---|
For an Overview of Enums, click here. |
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
To practice using Enums, in Motive Academy there is a course creating Hints for the learner. |
Table of Contents | ||||
---|---|---|---|---|
|
...
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
...
For full screen please view on Vimeo at this link
...
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:
...