Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

KRL extended quotes support the beesting operator, making them simple templating systems. Inside an extended quote, expression values can be referenced using the #{<expr>} syntax. For example, suppose you've stored 10 and 20 in the variables a and b:

Code Block
themeConfluence
languagejavascript
somevar = <<

...


The average value is #{(a+ b)/2}

...


>>;

The value of somevar would be "The average value is 15."