There is a function type with e.g. 3 roles. With the functions created with it, it now happens that one of these roles is not connected. This should not be displayed on the user interface.
I’m building a function type “dimmer” with rollers for switching, brightness and color temperature. But not all my lights have an adjustable color temperature, then this role remains unoccupied.
Until now, two parts had to be created for the surface design: one with color temperature and one without.
With “RoleIsLinked” this is also possible with a part. All you have to do is set the [funktionstyp]visibility of the controls that have something to do with the color temperature. RoleIsLinked[Farbtemperatur] .
More formal: RoleIsLinked[name] is a constant value that is true if the role name is connected in the function and false if it is not.