Handling nested IF statements in Battle

In RPG maker MZ, what method would be efficient for creating a picture in battle next to each character which shows which elements are their forte? In my case, I can pull this data based what headwear and footwear the character is using. This is a lot of IF statements and corresponding show pictures.

In frontview VS, a character's data pops upward on their turn so I thought it would be nice to put a reminder to the characters elemental bonus covered under it, that reveals/unveils when their turn comes. It's easy to forget what each character has equipped. The mark/pic also queues that their command turn is on.\

example:
Screen.JPG
What do you mean with what elements are their forte? I think you can check element rate with battler.elementRate(X) If you mean the VS 'dealt element' notetag increases, you can check the notetags with like .meta['notetag'](at least if you put the values in the x.x form). If you mean attack element trait, there's a script for that too, but don't know it by heart. You get the battler equipment with like battler.equips()[x] Then when you get that data you can compare what is highest/lowest. I think you can make a pic appear there by modifying the inputting function, but to make it somehow reveal under the actor box, I guess you'd have to edit the VisuStella code.
Thanks. The reveal is the part I have working. In this game, headwear gives an elemental bonus represented by shape (5 possible) by 20 pieces available. Footwear gives an elemental bonus represented by color (10 possible) by 20 pieces available. There are other factors that can influence elemental damage output, but these are consistent and it is easy to forget which ones are affecting the character. The skills have color and shape that show their corresponding elemental types.

To show a colored shape onscreen (showing which types of head and foot gear the player has equipped), my strategy is to run 4x IF chains (1 per character), with 20x IF branches for headwear and 20x nested branches per footwear. This will show the right color/shape graphic under each character box.

Problem is it will be 400 IF statements and 20 draw pic statements which seems very clumsy, could even slow down the system a little.
Hmmm, if you put the shapes and colors as notetags on the equipment and name your picture files like ShapeColor, isn't it something like this then (replace X and Y with the number of your equipment type, starts from 0):

let shape = $gameActors.actor(1).equips()[X].meta.Shape;
let color = $gameActors.actor(1).equips()[Y].meta.Color;
$gameScreen.picture(1).show(shape+color, 0, 0, 0, 100, 100, 255, 0);

EDIT:
Or maybe the other show picture script (never know what's the difference, but I tested and this one seems to work):
$gameScreen.showPicture(1, shape+color, 1, 500, 300, 100, 100, 255, 0);

Original thread: https://forums.rpgmakerweb.com/threads/handling-nested-if-statements-in-battle.177280/