Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Thanks! To make sure I understand a first div is the overall container, with two children: button and second div. Button: most of the original logic is unchanged, but for the display I don't use "visible" and "hidden"; I "inherit" the visible state of the parent div if I want it to show, or use "none" if I don't. Hover: I could use the inverse of the display logic used for the button. But since I already have logic for when my NotificationSummary field is populated, I may also just be able to check if that's empty or not, and "inherit" if that field has text or "none" Is that right? Commented May 28, 2021 at 21:00
  • Oh, one more question: where I had more nested if statements, you have ||. Does that work like "or" in JSON? Commented May 28, 2021 at 21:08
  • 1
    Yes, the || is an or operator and should make making these nasty if statements at least a little easier. Commented May 29, 2021 at 14:48