String comparison: Difference between revisions

no edit summary
(→‎{{header|Fortran}}: Ah yes, masking...)
No edit summary
Line 365:
a >= b
</pre>
 
=={{header|Astro}}==
<lang python>fun main(args): ## Array[Str]
let a = "astro"
let b = "astro"
print
..("Case sensitive comparisons:\n")
..("astro and astro are equal = $(a == b)")
..("astro and astro are not equal = $(a != b)")
..("astro comes before astro = $(a < b)")
..("astro comes after astro = $(a > b)")
..("\nCase insensitive comparisons:\n")
..("astro and astro are equal = $(a == b.lower())")
..("astro and astro are not equal = $(a != b.lower())")
..("astro comes before astro = $(a < b.lower())")
..("astro comes after astro = $(a > b.lower())")
</lang>
 
 
=={{header|AWK}}==
Anonymous user