Skip to content

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.

OperatorSyntaxDescription
IF EXISTSALTER component_type_name IF EXISTS component_nameIf the component type exists, execute the MDL command.
IF NOT EXISTSRECREATE component_type_name IF NOT EXISTS component_nameIf the component type does not exist, execute the MDL command.