Bill
(Bill)
1
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.
tpbradley
(Tom Bradley)
2
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
Cheers
Tom
1 Like
Bill
(Bill)
3
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
1 Like
dan
(Dan C.)
4
Nice catch, have made the switch to “id” now!