• I have been using your script and it works great but I found one "opportunity". I found that the script would always execute a REORGANIZE and never a REBUILD. In the "IF @currentfrag >= 30" section, I replaced @myreorganizeoption with @myrebuildoption. That corrected the problem. Now the script will do a REBUILD if the other conditions are right for that.

    thanks for the great script!