Trying to find a way to autoequip weapons and armors purchased at a shop.

So I'm using the normal default shop event. What I want is for a conditional to check if the player bought anything. If so it asks the player if they want to equip the weapons. If the player says yes, it checks to see what was purchased and automatically equips them. I can make the shop event just fine. I can of course do the equip weapons event. What I can't figure out is how to do the conditionals. I'm pretty sure there's a way to do it with script calls, but uh...a little help please?
if the player hasn't the item yet, , check if it has the item, than equip it.
problem more is if you have a party of 2, who can wear it, what has better stats...

so it can be more complicated, there is a thread how to do the variable and gold
for it's difference, so something similar is needed for armor as well?
**EDIT**

You can label this one solved, It's not autoequip but Yanfly's shop menu core let's me enable equipping items straight from the shop itself, so we can pretty much call this one solved.

Yeah I'd need one for weapon and armor, but they're different shops. And almost all weapons and armors in game are unique to their characters.

Ideally, I'd like to check if the item was recently purchased or somehow purchased at that specific event, because if it just checks for just having the item, then it will trigger that autoequip dialog any time the player revisits that same shop, even if they don't buy anything. It also means I would have to make it so each new shop only sells the newest weapons, which is ... mostly workable, but creates a few minor problems.

actually I just realized I could get around the autoequip dialog retriggering with a switch. Still, it would be pretty painstaking to make a switch for each and every item purchased that way.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-find-a-way-to-autoequip-weapons-and-armors-purchased-at-a-shop.174533/