MV Combining YEP ItemSynthesis and YEP QuestJournal to make crafting quests.

As the title suggests, I've been trying to figure out a way to make quests for crafting (synthesising) items, but I'm not sure how to work the conditions/variables for this.
How can I, for example, create a variable or condition to use after crafting an item which can be referenced through the QuestJournal? I am not experienced in Javascript so I'm wondering if anyone with experience can help me figure this out.

Basically, somehow add a variable like "Potion Crafted = true"/"Potion Crafted = 1" after crafting a potion, for example.

Original thread: https://forums.rpgmakerweb.com/threads/combining-yep-itemsynthesis-and-yep-questjournal-to-make-crafting-quests.133494/