#IF hV9 lnA=ICASE(lnB=0,0, ; lnB=1,1, ; INLIST(lnB,2,3,5),3, ; INLIST(lnB,6,7),4, ; lnB=4,7, ; 0) #ELSE lnA=IIF(lnB=0,0, ; IIF(lnB=1,1, ; IIF(INLIST(lnB,2,3,5),3, ; IIF(INLIST(lnB,6,7),4, ; IIF(lnB=4,7, ; 0))))) #ENDIFThe conversion from the above to the below turned out to be just inserting iif( in front of every expression, then closing parentheses in the end. This way they look just equally readable to me... though Icase() is nicer.