Expressions

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source RSS

Expressions

Expressions represent or compute values you can assign to attributes in a configuration.

Basic expressions are literal values, like "Hello, world!" or true. Expressions can also refer to values exported by components, perform arithmetic, or call functions.

You use expressions to configure any component. All component arguments have an underlying type. Alloy checks the expression type before assigning the result to an attribute.