A magnetic force is:
always attractive
always repulsive
both attractive and repulsive
always zero
A magnetic force can be both attractive as well as repulsive; i.e. like poles repel each other, whereas unlike poles attract each other.
Unlike gravitational force, magnetic force can be attractive or repulsive in nature.