# `syntax.expected_expression`

Expected a value.

Area 3, [Logic](../topics/logic.md); not declinable; the next step is usually the agent's.

A variable is given its value on the line that declares it:

```jadpo
type Count = Int {
    min: 0
}

function doubled(count: Count) -> Count {
    var result: Count =
    return result
}
```

```text
error: `result` has no value
 --> main.jadpo:6:23
  |
6 |     var result: Count =
  |                       ^ expected a value after `=`
  reason: A variable is given its value on the line that declares it: `var name: Type = value`.
  next: Write `result`'s value after `=` (agent)
  rule: syntax.expected_expression
  help: https://jadpo.dev/docs/errors/syntax.expected_expression

check failed: 1 error, 1 file
```
