---
title: "How to Write Nested IF Statements"
description: "Master nested IF statements to create powerful, multi-condition logic in your data workflows."
url: https://help.stackby.com/es/articles/38-how-to-write-nested-if-statements
collection: "Using Formulas"
updated: 2025-01-10
language: es
alternates: [en]
---

# How to Write Nested IF Statements

Master nested IF statements to create powerful, multi-condition logic in your data workflows.

## **NESTED IF Formula**

You can also add IF conditions to the Nested Formulas. 

```javascript
IF({IsCompleted ?}=="checked","MET",(IF(ISBEFORE({Due Date},NOW()),"BEHIND","GOING ON")))
```

The above formula is used to determine the status of the project. The comparison is with the "task deadline" to "today's" date, and if the checkbox against it was checked off (that it was completed).

**Example of NESTED IF Formula:**

![](https://d258lu9myqkejp.cloudfront.net/attachment_images/13106863f2fe353c380a5120ee99406fc42fd738d896627feaf52f14e82b11dd1629108948586.png)
