Hi Sphin. Like boatman I can't look in detail at the moment, but I've had some success in the past printf'ing an if's entire expression and each of the component sub-expressions; as well as breaking big if's into a series of individual if's. To paraphrase jcl, without a debugger printf is your best friend - don't be afraid to take it to what initially seem like silly extremes! laugh

HTH.