Stenway Developer Network

Enum Element

Enum
  Name MyEnum
  Values
    Value Apple Int 0
    Value Banana Int 1
    Value Orange Int 2
  End
End

LimaScript:

namespace MyLib
  enum Fruit
    Apple = 0
    Banana = 1
    Orange = 2
  end
end

Types

Supported types: string, char, integer

String:

Enum
  Name LanguageCode
  Values
    Value English String EN
    Value French String FR
    Value German String DE
  End
End
namespace MyLib
  enum LanguageCode
    English = "EN"
    French = "FR"
    German = "DE"
  end
end

Mixed

Attributes

  • Internal (Optional)
  • Name

Child Elements

Parent Element