Update most conditions to support comparisons

The CPU usage of an AttackPower() > 1000 call is about twice that of an
AttackPower(more 1000) call so I updated most of the functions to use
TestValue and Compare.
Documentation Update