Under what condition(s) is the magnitude of average velocity

Under what condition(s) is the magnitude of average velocity of an object equal to its average speed?

Average velocity would be equal to average speed when the total distance travelled equals the net displacement of a particle. This happens when a particle moves along a straight line in a fixed direction.