Hi,
I'm trying to make the following code to be shorter:
If Period = 40 Then Do;
If Years > 20 and Years < 30 Then
Effect_on_Guarantee = 1;
Else Effect_on_Guarantee = Lapse_Multipliers;
End;
Else Effect_on_Guarantee = Lapse_Multipliers;
To achieve this I'm trying to use IFN function like this:
IFN(a.Period = 40, IFN((a.Period > 20 and a.Period < 30),1, Lapse_Multipliers),Lapse_Multipliers) As Effect_on_Guarantee
In This way IFN doesn't return any error or warning but doesn't the work as along version of code does.
Where is a mistake?