RosettaCodeData/Task/String-comparison/Elixir/string-comparison.elixir
2023-07-01 13:44:08 -04:00

9 lines
247 B
Text

s = "abcd"
s == "abcd" #=> true
s == "abce" #=> false
s != "abcd" #=> false
s != "abce" #=> true
s > "abcd" #=> false
s < "abce" #=> true
s >= "abce" #=> false
s <= "abce" #=> true