multiple elements on a weapon?

If you tag a weapon with more than 1 element, how does the engine calculate damage--is it multiplicative, does it take the one with the greatest value, etc... ? 
According to the comments in the script, it takes the weakest element.  I'd need to look further into the scripts and follow through with some examples to understand how it's working it out.
just did some tests - it seems like it takes some sort of average.   I gave an enemy immunity (letter E) to fire element, and then tried various scenarios of tagging weapon elements.


If no element on weapon was checked off, damage was 180 (normal damage based on the char and enemy's stats).


If only that element on the weapon was checked off, damage was 0 (because enemy is immune to that element).


If that element and another element was checked off, damage was 90.


If that element and 2 other elements were checked off, damage was 120.


The more elements I checked off, the damage slowly crept up--with like 6 or 7 elements checked off, the damage was 150.

Original thread: https://forums.rpgmakerweb.com/threads/multiple-elements-on-a-weapon.67911/