RosettaCodeData/Task/String-comparison/Jq/string-comparison-1.jq

12 lines
288 B
Plaintext

# 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 <