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

# Creating a rule in PADS4 Designer

> Step-by-step guide to adding a rule in PADS4 Designer that pairs a condition with an action and runs during presentation playback.

A rule pairs a **condition** with an **action**. When the condition is met during playback, the action runs. Most conditions are linked to a data provider so rules can respond to real-time data events.

## Create a rule

1. **Open the Rules properties.** In the **Properties** pane, select **Rules**, then select the element you want the rule to apply to.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/RulesOnElements.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=848995d2fea4a312a3fca8cd2e7f1509" alt="Rules option in the Properties pane" title="Rules On Elements" className="mr-auto" style={{ width:"54%" }} width="389" height="374" data-path="images/DigitalSignage/Designer/RulesOnElements.png" />
   </Frame>
2. **Add a new rule.** Select **Add Rule**.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/AddRule.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=53f6565aa914008f96f01764f1e577f0" alt="Add Rule button" title="Add Rule" className="mr-auto" width="257" height="45" data-path="images/DigitalSignage/Designer/AddRule.png" />
   </Frame>
3. **Open the Rules pane.** The Rules pane opens, ready for you to define the condition and action.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/RulesScreenWeb.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=ff4ca2d699f632115ab84c06c93fb9d5" alt="Rules pane in Designer" width="980" height="546" data-path="images/DigitalSignage/Designer/RulesScreenWeb.png" />
   </Frame>
4. **Add a condition.** Select **Add Condition**.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/AddCondition.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=a1a0c75010e7626a5646e08b931fb028" alt="Add Condition button" width="965" height="475" data-path="images/DigitalSignage/Designer/AddCondition.png" />
   </Frame>
5. **Configure the condition.** Fill in the details that describe when the rule should trigger.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/AddCondition-1.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=c8dd627ae44240b24c313f90035baa44" alt="Configuring the rule condition" width="957" height="295" data-path="images/DigitalSignage/Designer/AddCondition-1.png" />
   </Frame>
6. **Define the action.** Select **Set Properties** to specify what happens when the condition is met.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/SetProperties.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=fdc57c59fc98be06f94f5bca1956fe6b" alt="Set Properties button" width="964" height="118" data-path="images/DigitalSignage/Designer/SetProperties.png" />
   </Frame>
7. **Choose which properties change.** In the **Configure Rule Properties** screen, change one or more properties that the action should update.
   <Frame>
     <img src="https://mintcdn.com/pads4/M7vbo4HaJW0l0EeD/images/DigitalSignage/Designer/ConfigureRuleProperties.png?fit=max&auto=format&n=M7vbo4HaJW0l0EeD&q=85&s=2db15e3562a26cbe006f49b5e8151c4f" alt="Configure Rule Properties screen" width="969" height="859" data-path="images/DigitalSignage/Designer/ConfigureRuleProperties.png" />
   </Frame>
8. **Save the properties.** Select **Save** to confirm the property changes.
9. **Save the rule.** Select **Save** again to store the rule on the element.

The rule is now active and will run whenever its condition is met during playback.
