Comparisons Between Data Types

It is not common to compare dissimilar data types, such as comparing a number to a text string. However, if you do make these types of comparisons, following is the rule DScript uses to determine which element is greater.

Null < false = zero < true = all non-zero numbers < all strings < all lists and objects < all function pointers.

See Comparison Operators.

Parent topic:Comparison Operators