Sorry about that.. try this re-write
Code:
multi.server {
  var %a = 1, %b = 5
  while %a <= %b {
    var %s1 = $($+(%,multi.server.,%a,.enable),2), %s2 = $($+(%,multi.server.,%a),2)
    server $iif(%s1 == on && %multi.server.conn && %s2,-m $v1,$iif(%s1 == on && %s2,$v1))
    if %s1 == on && %s2 {      inc %multi.server.conn    }
    inc %a
  }
}


Forgot to increment the variable that tracks the number of connections made.