> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# If

```ts theme={null}
function If(
   condition, 
   then, 
   fallback?): IfNode;
```

Defined in: [server/apps/components.ts:159](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/components.ts#L159)

## Parameters

### condition

`string`

### then

[`Component`](/api/server/interfaces/Component)

### fallback?

[`Component`](/api/server/interfaces/Component)

## Returns

[`IfNode`](/api/server/interfaces/IfNode)
