Constant values

Constant values can appear in the policy expressions. The parser recognizes strings, integers, doubles and Booleans directly. Strings are quoted with single or double quotes. Integers consist of a number and optionally a minus sign. Double consists of a number with a decimal dot and optionally a minus sign. Booleans consist of the value true and false, without quotes.

Other datatypes are represented using a string followed by a colon and the name of the datatype, as defined in the data type declaration. Examples of valid parameters are:

  • integer: 18, 20, -34
  • double: 30.5, -95.899
  • Boolean: true, false
  • string: "hello", 'A sunny day'
  • ipAddress: "127.0.0.1":ipAddress, '10.0.0.1':ipAddress
Axiomatics
The Visual Studio Code extension for ALFA was developed by Axiomatics.
FOLLOW US