Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Lexical analysis > Literals > String literals > Embedded expressions

Embedded expressions

Strings may contain embedded expressions; these are denoted with a dollar sign and expression inside curly braces. If a ``${´´ character sequence is required, it is quoted with ``$\{´´.

  greeting = "Hello, ${person.lastname}, ${person.firstname}!";

See also  | String literals  | Character data
Contributes notes:
Add a note
What's new | Anvil