code: function (param1, param2, param3, param4) {
              const params = visibilityFnParams(param1, param2, param3, param4);
              const event = getEvent(params.name, params.variant, params.data, params.result);
  
              globals.visibilities[event.key] = event.visibilityFunction;
              globals.datas[event.key] = event.data;
              triggerEvent('visibilityrule',event);
          }
docs: /*
  the following function calls are possible:
  visibility(name,result);
  visibility(name,variant,result);
  visibility(name,variant,data,result);