The necessary condition for equilibrium of a body is
For translational equilibrium, the algebraic sum of all forces must be zero and for rotational equilibrium, the algebraic sum of all moments of force must be zero.
So, for equilibrium of a body algebraic sum of all forces and moments of forces must be zero.