A whip is an official of a political party whose task is to ensure party discipline in a legislature. This means ensuring that members of the party vote according to the party platform, rather than according to their own individual ideology or the will of their constituents. Whips are the party's "enforcers".