**Source URL:** https://general.veevavault.dev/mdl/documentation/mdl-operators/logical-operators.md

# Logical Operators

You can create MDL scripts that check to see whether or not a component or subcomponent record meets certain conditions before executing a command.

| Operator | Syntax | Description |
| --- | --- | --- |
| [IF EXISTS](/mdl/documentation/mdl-operators/if-exists) | `ALTER component_type_name IF EXISTS component_name` | If the component type exists, execute the MDL command. |
| [IF NOT EXISTS](/mdl/documentation/mdl-operators/if-not-exists) | `RECREATE component_type_name IF NOT EXISTS component_name` | If the component type does not exist, execute the MDL command. |


---

**Previous:** [MDL Operators](/mdl/documentation/mdl-operators)  
**Next:** [IF EXISTS](/mdl/documentation/mdl-operators/if-exists)