code: function rangeToRule(selection) {
    const terms = ['and'];
    const vars = selection.range.variables;
    Object.keys(vars).forEach((name) => {
      terms.push(variableToRule(name, vars[name]));
    });
    return rule('logical', terms);
  }
docs: ----------