RosettaCodeData/Task/String-comparison/Jq/string-comparison-1.jq
2023-07-01 13:44:08 -04:00

11 lines
288 B
Text

# Comparing two strings for exact equality:
"this" == "this" # true
"this" == "This" # false
# != is the inverse of ==
# Comparing two strings to see if one is lexically ordered before the other:
"alpha" < "beta" # true
"beta" < "alpha" # false
# > is the inverse of <