Date: Thu, 28 Mar 2024 21:13:06 +0000 (UTC) Message-ID: <1683354951.7.1711660386621@d3634d1c1a27> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6_1123513683.1711660386621" ------=_Part_6_1123513683.1711660386621 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
KRL extended quotes support the bee=
sting operator, making them simple templating systems. Inside an extended q=
uote, expression values can be referenced using the #{<expr>}=
code> syntax. For example, suppose you've stored 10 and 20 in the variables=
a
and b
:
s= omevar =3D << The average of #{a} and #{b} is #{(a + b)/2} >>;
The value of somevar
would be "The average of 10 and =
20 is 15."
A beesting is escaped with a backslash (\#{
).
Non-Scalar Values
If you try to insert non-scalar values into a string using the beesting =
syntax, only their types will be printed. For a non-scalar, use the encode()
operator on the value first to turn it =
into a string.