> For the complete documentation index, see [llms.txt](https://wu-lang.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wu-lang.gitbook.io/guide/syntax/optionals.md).

# Optionals

Optional variable types are types that are allowed to contain a `nil` values:

```fsharp
foo: int? = 10
foo = nil
foo = 100
```

{% hint style="info" %}
Optional types are denoted by a `?`
{% endhint %}

We can safely unwrap an optional value, given that it exists, using `!`like this:

```fsharp
foo: str? = maybe_a_str()
bar: str = foo!
```
