Bi-directional loop

The bi-directional loop performs iterations in 2 directions, creating additional columns and rows.

The feature depends significantly on the XML coming from the document.

If the table is badly formed, there may be issues recognizing the elements to repeat, which in turn may create a corrupted document.

Data

[
  {
    brand: "Toyota",
    models: [{ name: "Prius 2" }, { name: "Prius 3" }]
  },
  {
    brand: "Tesla",
    models: [{ name: "S" }, { name: "X" }]
  },
  {
    brand: "Lumeneo",
    models: [{ name: "Smera" }, { name: "Néoma" }]
  }
];

{d[i].models[i].brand}
{d[i+1].models[i].brand}

{d[i].models[i].name}

{d[i+1].models[i].name}

{d[i].models[i+1].name }

{d[i+1].models[i+1].name }

Last updated