Skip to Content
0
Former Member
Jul 20, 2009 at 12:14 PM

HELP Script logic

21 Views

Hi,

I would like to use a condition inside logic but I can't figure out the statement to use. I have something like this:

*WHEN COMPTE_EAU.PARENTH1

*IS %COMPTES_R5%

//Here I would like to do something like :

if Get(PHASE_EAU="COMPTA",PERIODE=PERIODE.PRECEDENT,DSOURCE="INTERFACE") <0

then

*REC(Factor=0)

else

*REC(Factor=Get(PHASE_EAU="COMPTA",PERIODE=PERIODE.PRECEDENT,DSOURCE="INTERFACE")/GET(PHASE_EAU="COMPTA",PERIODE="%ANNEE_PREC%.SaisieM",DSOURCE="INTERFACE"))

end if

*ENDWHEN

I cannot find a way to test the amount value and do an action depending on it...

Thanks for any help

Alexandre B