Hello,
I am totally new to QRPs but our finance app uses them to generate invoices. We have a requirement where we want to output a string based on the value of something taken from the app.
From what I can gather, StrIFF returns 3 values: -1 if the input value is lower than the comparitor, the input value if it equals the comparitor, and the value higher than the input value. Take this as the input value: AUD
StrIFF(StrCompare(inputvalue, 'GBP'), '1', '2', '3')
In this case the result will be 1, because AUD is alphabetically before GBP. IF the inputvalue was USD, the result would be 3.
What I need to achieve is: if the inputvalue is either AUD, NZD output 'W', if it's GBP, EUR output 'X', if it's HKD, JPY output 'Y', if it's CAD output 'Z' and so on and so on.
How do I achieve this?
Thanks so much!
I am totally new to QRPs but our finance app uses them to generate invoices. We have a requirement where we want to output a string based on the value of something taken from the app.
From what I can gather, StrIFF returns 3 values: -1 if the input value is lower than the comparitor, the input value if it equals the comparitor, and the value higher than the input value. Take this as the input value: AUD
StrIFF(StrCompare(inputvalue, 'GBP'), '1', '2', '3')
In this case the result will be 1, because AUD is alphabetically before GBP. IF the inputvalue was USD, the result would be 3.
What I need to achieve is: if the inputvalue is either AUD, NZD output 'W', if it's GBP, EUR output 'X', if it's HKD, JPY output 'Y', if it's CAD output 'Z' and so on and so on.
How do I achieve this?
Thanks so much!