Team LiB   Previous Section   Next Section
>

Syntax

102 > 101 -- returns true

Synonyms

comes after

[is] greater than

is not less than or equal [to]

isn't less than or equal [to]

Return Value

boolean; true or false

Description

These operators, either the symbols or human-language versions, return true or false from the expression where they are used. You can use dates, integers, reals, or strings with these operators (both operands should be of the same class). If the operands are not of the same class, then AppleScript attempts to coerce the right operand to the class of the left operand.

In AppleScript, you can also use the contraction isn't less than or equal [to], along with the other English language versions of the > operator. You can compare a lot of things in AppleScript to test for equality, as the following examples show. But you have to break up lists or records, or extract properties from them, before their contents are compared with the greater than variations. You can say:

{65,75} equals {65,75}

but you cannot use the expression

{65,75} is greater than {65,75}

Examples

1500.0 is greater than 1500.1 -- returns false



pi > 3 -- returns true, because pi evaluates to about 3.14159265359



date "1/1/2050" comes after date "1/1/2000" -- true
    Team LiB   Previous Section   Next Section