Help with SrDudes Battle Customizer Plugin

Hey everybody,

I just have a quick javascript related question with this plugin.

I am using a JavaScript eval to show a popup if the target is Weak or Resistance against certain elements.

the code for this would be:

result.elementRate > 1 (show popup weak)

result.elementRate < 1 (show popup resistant)

This is working perfectly fine!

On top of that, what I would like to add is that if a target is immune to a certain state to show a popup resist state.

My question would be how to create the JavaScript code to achieve this as my coding knowledge is still very limited I am afraid.

Thank you in advance to every body taking their time to reply.

Cheers

Original thread: https://forums.rpgmakerweb.com/threads/help-with-srdudes-battle-customizer-plugin.118967/