Is your feature request related to a problem? Please describe.
Here’s an example: I have a .csv with a bunch of Greek vocab, and one of the columns is part of speech (noun, verb, etc). I’d like to have a single note type of Greek vocab, then be able to make several card types which only generate if type=noun, or something similar. Right now, it only checks if the field is blank ( {{#X}} {{/X}} or not.
There are a lot of ways I see myself using this and it would make Anki a lot better I think.
Describe the solution you’d like
I’d like to see {{#X:Y}} Z {{/X}}, where Z is only displayed if X==Y. Maybe more operations like !=, >, <, etc? Support for lists/strings, where if X contains Y?
Describe alternatives you’ve considered
Multiple note types, boolean fields (Noun?, Verb?, Adjective?, etc.), JavaScript.
The import process is a lot easier with a single note type, and I think it’s better organized that way.
Boolean fields will just multiply the number of fields from 15 to something stupid.
I could try JavaScript, just not well documented. Not sure if it would even work. I’m not certain of compatibility across platforms.
I couldn’t find any add-ons.
Thank you for considering!