Can you include Variables in the stats that armour gives to you.

I have a set of armour and I want it to give increased stats per item of the set used. For example using Yanfly's plugin I tried using the code:
<Custom Parameters>
atk = 20 + (($gameVariables.value(18)) * 2.5)>
</Custom Parameters>
With 18 being the variable which is checked once the menu is closed and increases it's value per set of item.
I cannot get it to work for the life of me Am i doing the code wrong or is there another way around this entirely
You have a syntax error in your code. You put a > at the end of the atk = math.
It should look like this.

JavaScript:
<Custom Parameters>
atk = 20 + (($gameVariables.value(18)) * 2.5)
</Custom Parameters>
You have a syntax error in your code. You put a > at the end of the atk = math.
It should look like this.

JavaScript:
<Custom Parameters>
atk = 20 + (($gameVariables.value(18)) * 2.5)
</Custom Parameters>
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/can-you-include-variables-in-the-stats-that-armour-gives-to-you.148696/