# IfStatement

An if statement.

* jsx

  ```tsx
  import { IfStatement } from "@alloy-js/typescript";


  <IfStatement condition={Children}>
    {children}
  </IfStatement>
  ```

* stc

  ```ts
  import { IfStatement } from "@alloy-js/typescript/stc";


  IfStatement({ condition: Children }).children(children)
  ```

## Props

|           |                                           |   |
| --------- | ----------------------------------------- | - |
| children  | [Children](../../../core/types/children/) |   |
| condition | [Children](../../../core/types/children/) |   |
