Majority

Majority[e1,e2,]
gives True if the majority of the are True, and False if the majority are False.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Return True when the majority of arguments are True:

In[1]:=
Click for copyable input
Out[1]=

Return False when an equal number of arguments are True and False:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2008
(7.0)