pybars3 icon indicating copy to clipboard operation
pybars3 copied to clipboard

list index out of range

Open BuiSyTu opened this issue 3 years ago • 0 comments

  • I have data:
{
    "data": [
        {
            "name": "first",
        },
        {
            "name": "second"
        }
    ]
}
  • template I used:
    data.[3].name
  • error: list index out of range

  • How to fix it, I don't know in advance the number of elements in the array

BuiSyTu avatar Oct 07 '22 04:10 BuiSyTu