Yanfly's New Equip Requirements Help

Hi, just installed Yanfly's YEP_X_EquipRequirements plugin. I'm trying to make a notetag in lunatic mode that makes it so an item (a 2h weapon) CANNOT be used if the actor has Dual Wielding. This is what I got so far, but when I try it in game, the weapon is grayed out no matter what.
 


<Custom Equip Requirement Condition>


if (user.isDualWield) {


condition = false;


} else {


condition = true;


}


</Custom Equip Requirement Condition>


Edit: I wanted to clarify that I made sure the actor DID NOT have dual wielding when trying to equip said weapon.
Just add parentheses after the isDualWield like this user.isDualWield()
OMG Thank you!!!
How do you consider shields off-hand equipment using Yanfly's Equip Requirments plugin, allowing the use of either two weapons or one weapon and a shield at the same time?
I classify shields as a weapon, one-handed of course, but it does not add the dual wield trait that one-handed weapons normally offer. This prevents dual wielding shields lol.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-new-equip-requirements-help.57645/