I created a field called {{generate card}} that I would populate with the value 1 if I want a card to be created. If not, I leave the field empty.
I wrap the front side of the card with the following:
{{#generate card}}
{{/generate card}}
I thought that this would suppress the creation of the card if field {{generate bold}} is empty.
Instead when I select the deck to study it, I still see the corresponding cards with this message:
The front side of this card is empty.
More information
(Die Vorderseite dieser Karte ist leer.
Mehr Informationen)
Sometimes you may want to generate extra cards for only some of your material, such as testing your ability to recall the most important words of a set. You can accomplish this by adding an extra field to your note, and adding some text into it (such as “1”) on the notes you want the extra card. Then in the card template, you can make the card’s creation depend on that field being non-empty. For more information on this, please see the conditional replacement section below.
You can only suppress the creation of cards generated from extra card templates. At least one card will always be generated from a note. You only have a single template in the note type in your example (I guess), so a card will always be created from the first template.
Regarding the Empty Cards function, I think the empty card should be shown as in this screenshot:
Toggling on “Keep notes with no valid cards” will keep the empty card even if you click Delete because deleting it will also delete its note. Keeping the note with its empty cards is useful for the reasons outlined in the manual.
Thank you.
I missed the part with the “extra” card templates.
I was just testing it without making sure that there is an initial card to begin with.
It is working now.
Thanks!