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

# Conditional Show / Hide

> Show or hide values depending on conditions

This feature allows you to show or hide values depending on conditions, enabling conditional display of document content based on specific criteria.

## How It Works

Configure conditions to control when a placeholder value is displayed or hidden in the generated document.

## Available Conditions

Operators adapt to the field type:

| Type     | Operators                                                          |
| -------- | ------------------------------------------------------------------ |
| Text     | equals, does not equal, contains, does not contain                 |
| Presence | exists, does not exist                                             |
| Number   | greater than, less than, greater than or equal, less than or equal |
| Date     | is after, is before, is on or after, is on or before               |
| Checkbox | is true, is false                                                  |

### Compare against

The value you compare to can be a literal value, **another mapped placeholder**, or a **raw field from your data source** (including unmapped fields, and the parent record's field when used inside line items). This makes dynamic comparisons possible, such as showing a value only when it is greater than another field.

### Multiple conditions

When a placeholder has more than one rule, choose **ALL** (show only when every condition passes) or **ANY** (show when at least one passes).

## Configuration

<Steps>
  <Step title="Open Placeholder Settings">
    Click the gear/settings icon next to the placeholder you want to configure
  </Step>

  <Step title="Enable Conditional Show/Hide">
    Select "Show/Hide Conditionally" option
  </Step>

  <Step title="Set Condition">
    Choose the operator (equals, contains, greater than, is after, etc.)
  </Step>

  <Step title="Choose What to Compare Against">
    Enter a literal value, or pick another placeholder or a source field to compare against
  </Step>

  <Step title="Choose Behavior">
    Select whether to show or hide when condition is met
  </Step>
</Steps>

## Example

**Scenario:** Show a discount message only when discount is greater than 0

1. Set placeholder `{{discount_message}}`
2. Configure condition: Show when `{{discount}}` does not equal "0"
3. Result: Discount message only appears when there's an actual discount

## Combining with Row Deletion

<Tip>
  Combine with [Conditional Paragraph/Row Deletion](/features/advanced-placeholder-options/conditional-paragraph-row-deletion) to completely remove lines or rows when values are hidden, rather than leaving blank spaces.
</Tip>

## Related Features

<CardGroup cols={2}>
  <Card title="Hidden Values" icon="eye-slash" href="/features/advanced-placeholder-options/hidden-values">
    Always hide values while using them elsewhere
  </Card>

  <Card title="Conditional Styling" icon="palette" href="/features/advanced-placeholder-options/conditional-styling">
    Apply styles based on conditions
  </Card>

  <Card title="Sections" icon="square-dashed" href="/features/sections">
    Control entire section visibility
  </Card>

  <Card title="Row Deletion" icon="trash" href="/features/advanced-placeholder-options/conditional-paragraph-row-deletion">
    Remove empty lines/rows
  </Card>
</CardGroup>
