# IF Function

> Choose a result based on a logical test with the IF formula function of TX Sheet Control: true and false values, omitted arguments, errors and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > IF Function
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/if/#see-also)

---

## Nearby

- **Previous:** [HYPGEOMDIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hypgeomdist/llms.txt)
- **Next:** [IFERROR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/iferror/llms.txt)
