property isNull

(r/o) bool isNull;

Typ

Zugriff

This property returns true if the style variant is empty, else false.
function onSample()
{
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        var styleVar = rootBox.getStyle("position");
        if (styleVar && !styleVar.isNull)
        {
            shell.print("variant is NOT empty");
        }
    }
}