GreaterThan[y]
is an operator form that yields x>y when applied to an expression x.
GreaterThan
GreaterThan[y]
is an operator form that yields x>y when applied to an expression x.
Details
- GreaterThan[y][x] is equivalent to Greater[x,y].
Examples
open all close allBasic Examples (3)
Scope (4)
Use GreaterThan with numbers:
GreaterThan[6][10]Use GreaterThan with numeric Quantity objects:
GreaterThan[Quantity[1, "Hour"]][Quantity[70, "Minutes"]]Use GreaterThan with dates:
GreaterThan[Today][Tomorrow]GreaterThan[DateObject[{2015, 8, 1}, "Day", "Gregorian", -6.]][DateObject[{2015, 6, 1}, "Day", "Gregorian", -6.]]GreaterThan[5][x]GreaterThan[x][5]Applications (2)
Countries with a population larger than 100 million people:
EntityValue[EntityClass["Country", {"Population" -> GreaterThan[Quantity[10 ^ 8, "People"]]}], "Entities"]Construct an association listing the countries and elevations of European mountains higher than 4500 meters:
EntityValue[EntityClass["Mountain", {"Countries" -> ContainsAny[EntityClass["Country", "Europe"]], "Elevation" -> GreaterThan[Quantity[4500, "Meters"]]}], {"Countries", "Elevation"}, "EntityAssociation"]Properties & Relations (2)
Obtain the respective GDP of the class of countries with a population larger than 100 million people:
EntityValue[EntityClass["Country", {"Population" -> GreaterThan[Quantity[10 ^ 8, "People"]]}], "GDP"]Total[%]The same total can be obtained using the Entity object combining those countries:
EntityValue[Entity["Country", {"Population" -> GreaterThan[Quantity[10 ^ 8, "People"]]}], "GDP"]Compare the alternative notations:
Select[{5, 10, 15, 20}, Greater[#, 10]&]Select[{5, 10, 15, 20}, GreaterThan[10]]Select[GreaterThan[10]][{5, 10, 15, 20}]Related Guides
History
Text
Wolfram Research (2015), GreaterThan, Wolfram Language function, https://reference.wolfram.com/language/ref/GreaterThan.html.
CMS
Wolfram Language. 2015. "GreaterThan." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GreaterThan.html.
APA
Wolfram Language. (2015). GreaterThan. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GreaterThan.html
BibTeX
@misc{reference.wolfram_2026_greaterthan, author="Wolfram Research", title="{GreaterThan}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GreaterThan.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_greaterthan, organization={Wolfram Research}, title={GreaterThan}, year={2015}, url={https://reference.wolfram.com/language/ref/GreaterThan.html}, note=[Accessed: 13-June-2026]}