Skip to content

Enumeration entry

Giorgio Garofalo edited this page Oct 16, 2024 · 7 revisions

An enumeration entry is an input value that matches the name of an element from an enumeration. Enumerations aren't supported in the Quarkdown language, so by enumeration we refer to a native JVM enum.

This value type is common among function parameters in the stdlib. From the user side, they are just strings. The main difference happens at invocation time, where an error is thrown if the value does not match any of the available entries.

.row alignment:{center}
  ...

 

Name matching follows the following rules:

  • Case-insensitive

    normal is the same as NORMAL

  • Spacing: words in native entries are separated by an _ (underscore), which can be (and should be) omitted.

    spacebetween is the same as space_between

Clone this wiki locally