# ‘Published' Elements Mode?

**URL:** <https://forums.realmacsoftware.com/t/published-elements-mode/44295>\
**Category:** RapidWeaver Elements\
**Created:** [August 16, 2024, 10:30am UTC](https://forums.realmacsoftware.com/t/published-elements-mode/44295 "2024-08-16T10:30:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [August 16, 2024, 10:30am UTC](https://forums.realmacsoftware.com/t/published-elements-mode/44295/1 "2024-08-16T10:30:42Z")

</div>

Reference this post - [Conditional Statements](https://forums.realmacsoftware.com/t/conditional-statements/44213)

The documentation states that "Elements gives you access to the current RapidWeaver mode inside of conditional statements”.

In the documentation the modes are not specifically listed, though **edit** and **preview** are shown in examples. Is there a mode for **published**?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 21, 2024, 6:04pm UTC](https://forums.realmacsoftware.com/t/published-elements-mode/44295/2 "2024-08-21T18:04:19Z")

</div>

The following will work for you.

```auto
@if(edit)   
    Visible in edit mode (inside Elements)
@elseif(preview)   
    Visible in local preview (in Safari).
@else
  Visible when Published.
@endif

```
