

For the Default Value, Constants can be assigned only a literal value, another constant value or the result of a constant expression.Ĭonstants of type String or Text can also be set to Dynamic.

You can set the Constant Name, Default Value, Type (Number, String, Boolean, Color, Text) and Scope using the Inspector. Keyboard shortcut Option Command C on MacOS or Ctrl Shift C on Windows and Linux) There are several ways to add a constant to a module, which all display the Constant Editor: Reporting bugs and making feature requestsĬonstants added to a module work like constants added to a method except they are accessible anywhere in the module and possibly also available to code not in the module as well (depending on the scope).
