# Writing Visible Conditions

**URL:** <https://forums.realmacsoftware.com/t/writing-visible-conditions/45351>\
**Category:** RapidWeaver Elements\
**Created:** [November 21, 2024, 12:55am UTC](https://forums.realmacsoftware.com/t/writing-visible-conditions/45351 "2024-11-21T00:55:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [November 21, 2024, 12:55am UTC](https://forums.realmacsoftware.com/t/writing-visible-conditions/45351/1 "2024-11-21T00:55:34Z")

</div>

Quick questions about setting visible in controls:

The docs were showing a lot of parenthesis and I’m wondering if they are needed.

- Is this ok for booleans?: “visible”: “showborder == true”,

- Is this ok for string?: “visible”: “bordercolor == ‘color1’”,

- Is this ok for combined string & boolean?:  
“visible”: “showx == true && typ == ‘pixel’”,

- Is this ok for ‘or’ operator and ‘and’ operator?:  
“visible”: “(showbutton == true || showbutton2 == true) && buttonbg == false”,

Thanks.

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [November 21, 2024, 11:27am UTC](https://forums.realmacsoftware.com/t/writing-visible-conditions/45351/2 "2024-11-21T11:27:18Z")

</div>

Hey @Bill,

Can you post links to where you’ve seen this in the docs?

The parenthesis are only needed to group conditions where it’s necessary, so all your above statements are correct and should work fine.

Here’s a demo project showing them all in action

[Property visibility](elementsapp://downloadDocument/fkUau2NYGkdx)

Cheers  
Tom

---

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [November 21, 2024, 4:52pm UTC](https://forums.realmacsoftware.com/t/writing-visible-conditions/45351/3 "2024-11-21T16:52:09Z")

</div>

I think the parenthesis were an artifact of copying and reusing and trying different things on a thousand different examples - you know how that goes 😉

FYI: I believe you need to convert ‘property’ to ‘id’ on this page: [Properties.json | RapidWeaver Elements Docs](https://docs.realmacsoftware.com/elements-docs/elements-language/properties.json)

---

<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:** [November 21, 2024, 10:08pm UTC](https://forums.realmacsoftware.com/t/writing-visible-conditions/45351/4 "2024-11-21T22:08:47Z")

</div>

Nice catch, have made the switch to “id” now!
