---
title: "IF"
url: "https://help.formsfly.com/en/article/if"
language: "en"
last_updated: "2024-10-31T09:50:25.040Z"
---

# IF

Let's you return one of two values based on whether the given condition is true or false.

* * *

### Syntax

`IF**(**condition, a, b**)**`

### Example

```plaintext
if({{price}}>100, 'YES', 'NO')
```

### Notes

If true return a, else return b

Useful for toggling a field's dynamic value based on previous answers.
