That was an annoying mistake. Ok Klaus thankyou. I have succeeded in this all by myself now, but I have one problem that I can not work out, and this will complete the little exercise. Like an idiot I forgot that while the first drop down menu is always a '1', the second drop down menu has integers corresponding to the item chosen. But some of these two drop down menus need to be multiplied with each other and some need division according to the combination chosen. For example:
If ounces and grams are chosen then it would be 1/0.0353
if grams and ounces are chosen then it would be 1*0.0353
I know I could easily arrange the maths so that ALL calculations are either multiplication or division, but that is making it too easy for me, I need to be able to solve it this way because the maths world is not always this convenient.
My idea is to put a series of if and then statements throughout here in this script below. I have read that each 'case' is in fact a separate handler for that item. Is this the way to go?
case "ounces"
put 0.035 into gsecondinteger
break
case "grams"
put 0.35 into gsecondinteger
edit: ok, this last silly idea will not work. I need to put the two statements into the go button but figure out a way to differentiate the two situations where sometimes the same integers need multiplying and sometimes they will need dividing depending upon which of the combinations are chosen by the user.....head scratching time...I need to refer back to the combinations and so I guess put If and Then conditions which point to the 'Items' in that drop down menu in their two different states....coffee time and head scratching
Ok I have a solution I think: three of the nine combinations need to be divided, the other six multiplied. Is their a way to group this kind of selection into its own variable, to take the two drop down menu choices and make it into one variable, or should I be looking at writing a custom function, which I would like to learn. So for eaxple when the user picks a group that need to be divided then this information is "called" and added to the variable ...hey, I'm making this up as I go along....the logic is there I think? Mmmm
