
reference.language.comparison.html Maven / Gradle / Ivy
Comparison expressions
Comparison expressions
Comparison expressions are used to compare values with order in mind (which is greater?).
A comparison expression is a code fragment which produces a Boolean
value, which can then be used as an input for other operations: print, write, method call and so forth.
A comparison expression has the form a op b
where op
is one the following comparison operators: <
, <=
, >
and >=
.
Please note that <
and >=
are mutually exlusive, same for <=
and >
.
Also note that Prompto can only compare compatible values (it does not make sense to compare text and number).
Comparing Text values
Prompto compares Text values lexicographically i.e. using their underlying Unicode representation.
Comparing Character values
Prompto compares Character values lexicographically i.e. using their underlying Unicode representation.
Comparing Integer and Decimal values
Comparing Date values
Comparing Time values
Comparing DateTime values
Comparing user defined values
Prompto supports user defined comparisons. See categories for details.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy