SplitScript reference / Language / template string

template string

syntax

`text {expression}`

Interpolates values into a String.

Backtick strings use braces without JavaScript's dollar marker. A dollar sign is ordinary text, so ${value} emits $ followed by the interpolated value rather than being treated as a typo. Non-String values use the same Display conversion as an as String cast.

Examples

Interpolate a value

let label = `Level {current.level}`