You didn't note what phase & priority you are running this script at.
Also, there's a code button among the advanced reply options on this forum - it looks like a "#" - if you post something as code, that preserves the formatting, like indentations. Seeing the indentations you've used would be very helpful in tracking where your ifs and endifs match up.
(You can edit existing posts)
(I think there may be some mis-placed if/endifs among the quadruped section, but I can't quite tell - the quadruped = 0 part may be within the quadruped <> 0 portion).
|