What do "ivl", "type" and "queue" mean?

In relation to developing an add-on, what do “ivl”, “type” and “queue” represent?

Which operators do the three accept?

For example, “ivl == 0”, does it mean that the card is new or in the learning phase?

I think this is what you’re looking for?


Thank you very much, that was exactly what I was looking for, I had already looked for this documentation and couldn’t find it. With this information from the documentation I will be able to edit the code.

I want to change the code of an add-on that applies a condition to disable a functionality if the cards are not in the review phase. In other words, the add-on disables a feature for new cards and those in the learning phase.

If you know the answer, now I just have this question: from the documentation, I already understand “queue” and “type”, but the description of “ivl” is a bit bad. Considering that the creator of the add-on I mentioned used “ivl == 0”, what would that mean according to this documentation?

 ivl             integer not null,
      -- interval (used in SRS algorithm). Negative = seconds, positive = days

ivl is zeroed out when the card is reset using Cards > Forget. Checking type and queue is enough to determine the type of a card.

I thought that “lvl == 0” would be a new card or in the learning phase and that a “lvl” greater than 0 would be a card in the review phase because it has a interval. I also thought that the creator of the add-on I mentioned decided on “ivl == 0” because it would be simpler than using two conditions: “type == 0” (new) and “type == 1” (learning)

Thanks for your contribution too.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.