code: @Override
      public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
              throws InvalidVariableException {
          JMeterVariables vars = getVariables();
          String res = ((CompoundVariable) values[0]).execute().trim();
  
          if (vars != null) {
              Object var = vars.getObject(res);
              if (var != null) {
                  return "1";
              }
          }
  
          return "0";
  
      }
docs: {@inheritDoc}