# AZ110: A dollar-quote tag in a condition

The SQL in `{...}` goes into generated functions, whose bodies are quoted with tags such as `$f$`. The same tag in a condition would end the body there. Write the text another way: `'$' || 'f$'`. A bare `$$` is fine; a tag with a name between the dollars (`$changed$`, as in `$$changed$$`) is not: quote such text with apostrophes.

Reported when the policy is compiled: `rowstile check`, the editor, `rowstile dev`.

## The mistake

```authz
app role app_user
type user = app.users
type folder = app.folders
  owner : user = owner_id
  can view = owner and {name <> '$f$'}
```

```
line 5: {name <> '$f$'} contains $f$, which ends the generated function it goes in: write the text another way ('$' || 'f$') [AZ110]
```

## Fixed

```authz
app role app_user
type user = app.users
type folder = app.folders
  owner : user = owner_id
  can view = owner and {name <> '$' || 'f$'}
```
