If statement
Posted: 24 Jun 2014, 10:22
Good morning,
New to the forums so hello to all! We use Sage Accounts Professional 2014
I'm trying (in vain so far) to create an expression:
I have two separate expressions which I want to combine into a single if statement expression
expr1 StringToInteger(SOP_ITEM.COMMENT_2) * StringToInteger(SOP_ITEM.EXT_ORDER_REF) * 6.3 / 1000000
expr2 STOCK.UNIT_WEIGHT * 6.3
If expr2 is less than or equal to 0 then use expr1, if the value is less than 0.26 then set the result to 0.26
The context of the expressions is to calculate square meter rates of a particular item, setting the minimum rate to 0.26 if the result is less than that..
I hope I've explained that well enough.
Thanks in advance.
Dave
New to the forums so hello to all! We use Sage Accounts Professional 2014
I'm trying (in vain so far) to create an expression:
I have two separate expressions which I want to combine into a single if statement expression
expr1 StringToInteger(SOP_ITEM.COMMENT_2) * StringToInteger(SOP_ITEM.EXT_ORDER_REF) * 6.3 / 1000000
expr2 STOCK.UNIT_WEIGHT * 6.3
If expr2 is less than or equal to 0 then use expr1, if the value is less than 0.26 then set the result to 0.26
The context of the expressions is to calculate square meter rates of a particular item, setting the minimum rate to 0.26 if the result is less than that..
I hope I've explained that well enough.
Thanks in advance.
Dave