Equation editor "quirk"

Not sure I've seen this anywhere - I just hope I'm doing something wrong, but I can't quite seem to get the equation editor to do what I want.

I'm using an equation to drive an array.  I need to equally space some slots between two other slots on either end.  What seems to be biting me in the "hiney" is my calculating the count of slots:

Maybe there's a better way, but it works - inspite of the triangle with the exclamation point in it.  If I hover over that, it reads:  "Unable to compute value. Invalid entry."

Is this just a quirk of the equation editor or is it a fluke it's working? 

I'm a little reluctant to push this into production with knowing for sure.

BTW - SolidWorks2012 x64 SP3.0

Thanks

SolidworksParts And Features
Answers 2
CH
CH 2014-07-21 Best Answer

I think you need to change your if() in line 3 to iif().  It will probably work if you do that.

SF
SF 2014-07-22

I am guessing that you renamed the LPattern name to Count, I believe the formula should be Count =Count_2. Only the name is the variable.