What's the best way to do conditional dialogue trees?

Is it possible to create conditional dialogue trees in RPG Maker MV without having to do a huge number of IF statements?

Say we wanted to do...

Choices:
Say A
Say B [only possible if the user has already said A]
Say C [only possible if the user has already said B]
Say D
Say E [only possible if the user has said A and D]
Say F [only possible if the user has said A, B, C, D and E]

Like I'm aware one way to do it, using many pages and conditional IF statements to map out the entire conversation, with every single possible route. However, once you get a couple of options deep, this will result in a combinatorial explosion where there might be tens or even hundreds of possible outcomes.

I've worked in prior games like Neverwinter Nights where there was an alternate, more complex conversation choice system where you could specify conditions for whether different options were present in a dialog menu. However, I'm not aware of a method in MV to do this. Is there a simple way I'm missing?
Yanfly's choice list.
Yanfly's choice list.
Can you point me to that? I googled but didn't find an obvious answer.

EDIT: Ah it's OK, it's in Extended Message Pack 1. Sorry, just it isn't laid out on the webpage for the plugin.
Oh wait, stupid me. Yanfly choices list is for show choices, my bad.
What about a variable/switch inncrease though?
For example with your messages:
Message B can only be shown when message A has been shown. So message A sets a variable to 1 if it's less than 1.
Message B, if it gets shown, sets the variable value to 2. And this will then allow message C to be shown. Showing message C sets the variable value to 3 if it's less than 3. And so on.
And if you want to have it simpler, you can use five switches instead. Message B can be shown only if switch 1 is on. Message C if switch 2 is on. And so on. This way you won't have any large nesting of ifs.
Oh wait, stupid me. Yanfly choices list is for show choices, my bad.
No, no, it's fine! The Yanfly thing can do what I want.

I just needed to be able to show/hide/disable/enable dialogue choices based upon switches and logic. I can do that with the Yanfly extended message plugin.

Original thread: https://forums.rpgmakerweb.com/threads/whats-the-best-way-to-do-conditional-dialogue-trees.104728/