1. Home
  2. Docs
  3. Configure models
  4. Define Variables and Arrays

Define Variables and Arrays

Page Content

Variables #

{{ block "CONFIG" .}}
  {{ setvar "var1" "foo"}}
{{end}}

The first parameter of setvar is the variable name (var1), the second the value (foo).

Arrays #

{{ block "CONFIG" .}}
  {{ setarray "array1" "hi" "hello" "ciao" "servus"}}
{{end}}

The first parameter of setarray is the array name (array1), all others values (hi, hello, ciao, servus).