Hello people. first of all I've been searching, and I've read a lot of post about ternary conditional,
but i can't find any similar to what I want to accomplish
Maybe someone can help me:
Right now the code is copying a value for an entire month (DAYS)
*WHEN ACCOUNT
*IS <> A_BANK
*FOR %DAY% = %DAYS%
*REC(EXPRESSION=R_DATE=%DAY%)
*NEXT
*ENDWHEN
What i want is:
Having two dimension with dates:
R_DATE = The day we write a record.
L_DATE = The limit date till we have to write
Write the record till R_DATE = L_DATE.
//Next code is wrong " syntax error", don't know if I can do this.
*WHEN ACCOUNT
*IS <> A_BANK
*FOR %DAY% = %DAYS%
*REC(EXPRESSION=L_DATE > %DAY% ? R_DATE=%DAY%:0)
*NEXT
*ENDWHEN
Example:
Month 1-30 days = (01.10.2015,02.10.2015...)
L_DATE = 15.10.2015
Write the value until we reach L_DATE in R_DATE
Thanks for your help & regards