VBA equation; If then or IIF statement in add equation box

Hello Everybody,

In Add equation box while creating part, I am using the following equation

IIF ( "L" < 20,"N2","N3")

where N2, N3 are paramaters/variable having  numerical value stored in them.

Solidworks gives me syntax error message. Please can any one help me

figure out correct syntax.

SolidworksApi macros