# P007

> template strings are not supported

**Severity** Error

A string contains `${...}`. Flowscope Script strings are plain text with no interpolation, so the placeholder would be printed literally; the compiler rejects it instead.

Build the text with `str.format`, which also lets you control decimals: `str.format("Funding {0:.4}%", rate)`.

## Failing example

```flowscope
script "Funding log"
data funding = subscribe(data.funding)
on funding.close {
  let rate = funding.rate ?? 0.0
  log.info("Funding ${rate}%")
}
```

## Fixed example

```flowscope
script "Funding log"
data funding = subscribe(data.funding)
on funding.close {
  let rate = funding.rate ?? 0.0
  log.info(str.format("Funding {0:.4}%", rate))
}
```

## Related

- [T416](/docs/scripting/reference/diagnostics/t416)
