While this answer is still valid, there is also this method since v1.9.4:
- set the
visible
property toVAR{my_visibility, true}
- change the value of that block from a button's
onValue
script for example:
setVar('widget_id', 'my_visibility', value === 1)