Can Someone help me in converting below logical statements to IR.

1st statement

=IF(AND(A<=101.5,A>=98.5),(K*S),IF(A<98.5,(98.5-A)+K*S,IF(A>101.5,(A-101.5)+K*S)))

2nd Statement

IF X=30 Then A=2 ,IF X=10 Then A=2.4 Otherwise Display "Not Applicable"

Thanks & Regards

Rajesh Deo

Here another idea from our R&D engineer for #2:

A : =Iif(x=30, 2, Iif(x=10, 2.4, "Not applicable"))

the A: is not part of the expression but indcaates that you can save the value of teh expression in a variable in IR,

The important part is: You cannot set a variable in the true / false part if the IIF expression, you just return the value to save it later- Hope this helps.