Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Conditional *REC Statement

$
0
0

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


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>