or the best form is to use many ifs?
Ex:

if(str_cmp(my.string1,"plate_armor")){
inv_float_item(plate_armor);
}

if(str_cmp(my.string1,"plate_shield")){
inv_float_item(plate_shield);
}
...

The problem to make this
it is that I go to have a function obstructed of ifs. if for each item imagines one


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________