Hello Everyone,
Ran across a piece of script logic I have never seen before:
*WHEN RPTCURRENCY
*IS USD
*WHEN ACCOUNT
*IS ACCOUNT1
*REC(EXPRESSION = %VALUE% * -1 * (([ACCOUNT].[ACCOUNT2],[RPTCURRENCY].[LC])>-1) * (([ACCOUNT].[ACCOUNT2],[RPTCURRENCY].[LC])<1),ACCOUNT="ACCOUNT3")
*ENDWHEN
*ENDWHEN
Upon execution, the behavior of the *REC statement appears to be as follows:
If the value of ACCOUNT2 is greater than -1 and less than 1 (or said another way...if the value of ACCOUNT2 is between -1 and 1)
, then multiple the value of ACCOUNT1 by -1, and write result to ACCOUNT3.
Can anyone confirm this is in fact the correct behavior of the logic?
Best regards,
-Matt