Versions Compared

Key

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

Quick Links

Table of Contents
minLevel1
maxLevel7

About Enums

The term "enum" is short for "enumerated list". It is a common programming term that simply means a user-defined list. You would use an enum if you would like to create a variable that has a list of options or states.

...

Create an Enum

...

The enum editor is located in the editing drawer on the far right of StoryFlow. You access it by clicking this button:

...

Watch this video to see how to create an enum:

...

1. Click on the Enum Editor in the shortcut menu on the right side 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:

...