---
title: Macros
id: macros
date: 2023-07-17
full_link: /docs/rules/basic-elements/#macros
short_description: >
  Macros are rule condition snippets that can be re-used inside rules and even other macros.
aka:
tags:
- fundamental
---
Macros are rule {{< glossary_tooltip text="conditions" term_id="conditions" >}} snippets that can be re-used inside {{< glossary_tooltip text="rules" term_id="rules" >}} and even other macros.

<!--more-->

Macros provide a way to name common patterns and factor out redundancies in {{< glossary_tooltip text="rules" term_id="rules" >}}. 