state==vtkMRMLIGTLinkConnectorNode::STATE_ON would be easier to read