# Variables in rules

**URL:** <https://community.openhab.org/t/variables-in-rules/112301>\
**Category:** Scripts & Rules\
**Tags:** rules\
**Created:** [December 31, 2020, 9:37pm UTC](https://community.openhab.org/t/variables-in-rules/112301 "2020-12-31T21:37:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![denominator](https://community.openhab.org/user_avatar/community.openhab.org/denominator/32/37349_2.png) [@denominator](https://community.openhab.org/u/denominator)\
**Post date:** [January 1, 2021, 9:26pm UTC](https://community.openhab.org/t/variables-in-rules/112301/5 "2021-01-01T21:26:34Z")

</div>

Can you pleas post your whole rules file using code fences.

> [@How to use code fences](https://community.openhab.org/t/how-to-use-code-fences/38383):
>
> We all have to type this content over and over and over. Here is a posting we can all point to when the topic comes up. Why use code fences? Because rules, sitemap, logs, and configs are all but unreadable when code fences are not used. When to use code fences? Whenever one is posting any sort of code, config, log, and any text where line wrapping, indentation, and using an equal spaced font makes the text more legible. How to use code fences? Use 3 backticks (```)... Or use \<code\>... …

---

_[View the full topic](https://community.openhab.org/t/variables-in-rules/112301)._
