String comparison: Difference between revisions

Content added Content deleted
Line 1,631: Line 1,631:
The generic relationship of Num '5.1' and Rat '5.1' is Same
The generic relationship of Num '5.1' and Rat '5.1' is Same
The numeric relationship of Num '5.1' and Rat '5.1' is Same</pre>
The numeric relationship of Num '5.1' and Rat '5.1' is Same</pre>

=={{header|Phix}}==
<lang Phix>if name=="pete" then ?"The strings are equal" end if
if name!="pete" then ?"The strings are not equal" end if
if name<"pete" then ?"name is lexically first" end if
if name>"pete" then ?"name is lexically last" end if
if upper(name)=upper("pete") then ?"case insensitive match" end if
if match("pete",lower(name)) then ?"petes in there somewhere" end if</lang>


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==
Line 1,650: Line 1,658:
(str< "12" "45") )
(str< "12" "45") )
(bye)</lang>
(bye)</lang>


=={{header|PowerShell}}==
=={{header|PowerShell}}==