I am fairly new to InfoPath and to this forum so please forgive me if this has already been asked and answered.
I am in need of some help as it pertains to formulas. I have a dropdown field labeled "Currency". Users pick a currency (field1) and provide amount of shares of stock to buy (field2). Field 3 is the stock price which is hardcoded in the form and field 4 is an exchange rate that the user provides. I have a simple calculated field: field2 * field3 * field4. This works fine. No issues.
However, I now need to take into consideration the selected currency. Specifically, if a particular currency (only 2 out of the entire list) is selected, the calculation must round the answer to the nearest whole number. In Excel, such a formula would look like this:
=IF(OR(field1="CUR1",field1="CUR2"),ROUND(field2*field3*field4),field2*field3*field4)
Unfortunately, I am really struggling "translating" this into the appropriate syntax InfoPath expects. Any guidance would be GREATLY appreciated!
Thanks in advance!