An if/else statement for equipment requirements

Hey all. What I am trying to do is put an if/else statement in a piece of equipment that will check the following.

Basically I am using Alistair Attribute Distribution and I know how to write what I need but I don't know how to check it. I need an ability to have a certain amount of points before the item can be equipped so in the equipment notebox I want to put an if/else that checks for those points before the item can be equipped. So something like this...

if value = actor.abilityLevel("Heavy Armor") > 0 This part is correct
then
allow to equip
else
not allow to equip

The parts in bold is what I need to learn how to write properly. I tried using Yanfly Equip Requirements and it DOES work mechanically but it's kind of buggy visually when in shops and it doesn't reflect who can use it properly in the side menu (shop status?) Basically I want to try the above method to see if it works that way instead. Thanks for any help, it's much appreciated.

Original thread: https://forums.rpgmakerweb.com/threads/an-if-else-statement-for-equipment-requirements.74569/