Board Thread:Support Requests - Getting Technical/@comment-87.123.205.133-20180901180358

Hi all. So I would like to do something along these lines in an infobox:


 * material=wood
 * material2=stone
 * material3=iron

Now, based on these three parameters and their values, I would like to have a line in the infobox that outputs a certain value based on the materials themselves, regardless of their position in the parameter. So, for example, let's say that wood=20, stone=40 and iron=60, there would be a fourth line that sums up these three values (using #expr, of course) and outputs the result.

So instead of having to repeat the values for all three parameters through #if, just have this:


 * material=iron
 * material2=wood
 * material3=stone

OR this:


 * material=stone
 * material2=iron
 * material3=wood

output 120, regardless of any given combination. I know I need to use #switch or something similar, but I just can't figure how to go about it. 