Hide html element from variable

Hi all,

I have a couple of html elements (labels, inputs) that should only show up under certain circumstances. So my idea was to use a variable called “hide_items” and then bind the “hidden” attribute of the labels and inputs to this variable. Is this possible?

Many thanks in advance,
Christian