How to check equip slot from the item's notetag

Hi all.
I have a very specific request.
I'm using Yanfly's equip core to add some extra duplicate equipment slots that allow my actors to hold extra equipment.
However, I'm looking for a way to make it so that these extra slots ignore the equipment's parameters, but not their traits.

The reason for this is that I have some equipment that allows the use of free spells, but I don't want the extras to affect attack, defense, etc. while being held. Basically it would be like having extra wands that you carry around in a pouch. So they need to be equipped for the purposes of the trait that grants the skill, but otherwise act like they are not equipped.

Thanks in advance for any help.

EDIT:
Searching around some more it seems what I really need is a way to have the equipment params be dynamic.
Make them zero out if the equipment is held in a specific slot.

Since I'm using ICF-Soft params core for custom params, I can add javascript tags to my equipment.

So what I need is something like this:

<CUSTOM NPARAM>
if ( iAmEquipedInSlot5 ) //this is what I have no idea how to do.
{ atk = 0;
}
else
{ atk = 5;
};
</CUSTOM NPARAM>

How can I check if the piece of equipment itself is in a specific slot?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-equip-slot-from-the-items-notetag.92629/