cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Conditional logics

Former Member
0 Kudos
155

Hi

Can someone explain to me Conditional logic in the record statement below ?

REC(EXPRESSION=([ACCOUNT].[A_100006])>([ACCOUNT].[A_100005]) ? ([ACCOUNT].[A_100103])*([ACCOUNT].[A_100102]) : 0,ACCOUNT="A_100009")

Is it if Account A_100006 is greater than A_100005 it posted in A_100009 otherwise A_100103 is multiplied with A_100102 and posted in A_100047  ?

Thank you

Regards

Ram

Accepted Solutions (1)

Accepted Solutions (1)

david_ings
Participant
0 Kudos

Hi Ram,

Looks like it's always posting to A_100009 (note, you don't need the quote marks around this account).

It's currently saying:

- If A_100006 is greater than A_100005, then multiply the value of A_100103 by the value of A_100102, otherwise write a value of zero. And always write the answer to A_100009 (after removing the " ")

David

former_member186338
Active Contributor
0 Kudos

In general, REC is always posting to the single destination! Condition can be used only for the value written. If you need to write to different destinations - use multiple REC's

Writing zero is not the same as doing nothing, to do nothing - write destination over destination...

Vadim

Answers (0)