Skip to main content

Sylk Value

In Sylk, an enum value is a named constant that represents one of the possible values for an enum type value. Each enum value is defined with a unique integer value, which is used to represent the value in the serialized message.

When defining an enum type in Sylk, you can specify the values for each enum value explicitly, or let Sylk assign them automatically. If you specify the values explicitly, you can use any integer value, positive or negative. If you don't specify them, Sylk will assign values automatically, starting with zero and incrementing by one for each subsequent value.