Sometimes in tooltips, we want to control what is rendered based on existing data. Eg, a tooltip might contain an action button that says "show label", and once clicked the text should change to "hide label".
Currently our template syntax supports only if statements ("if a value is present at all"). An else block would be helpful for this use case.
Currently the if statement only checks if a value is present. Some additional development would be necessary to assess whether the current grammar allows smarter conditionals:
Sometimes in tooltips, we want to control what is rendered based on existing data. Eg, a tooltip might contain an action button that says "show label", and once clicked the text should change to "hide label".
Currently our template syntax supports only if statements ("if a value is present at all"). An else block would be helpful for this use case.
Currently the if statement only checks if a value is present. Some additional development would be necessary to assess whether the current grammar allows smarter conditionals: