Page 1 of 1

IF function syntax error

Posted: Thu Oct 23, 2014 7:30 am
by peli
Hi all,

Im trying to set up an IF-function but get the following message:

"Syntax error in control statment in IF"

And thisis my code:

if
2 < gap < 10 then
CCB = 0,3125*(kreditgap - 2)
else
if
gap <= 2 then
CCyB = 0
else
kreditgap >= 10 then
CCyB = 2,5
endif
endif

Any advise would be great!

Best,

Petra

Re: IF function syntax error

Posted: Thu Oct 23, 2014 7:52 am
by startz
try putting the logical condition on the same line as the if