> ## Documentation Index
> Fetch the complete documentation index at: https://colin-feat-client-cache-mode.mintlify.site/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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)
