String comparison: Difference between revisions
Content deleted Content added
m →{{header|Phix}}: added syntax colouring the hard way, phix/basics |
|||
Line 2,338: | Line 2,338: | ||
</pre> |
</pre> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
<lang Mathematica>compare[x_, y_] := Module[{}, |
<lang Mathematica>compare[x_, y_] := Module[{}, |
||
If[x == y, |
If[x == y, |
||
Line 2,373: | Line 2,373: | ||
Comparing for order (case sensitive): mathematica comes before Mathematica |
Comparing for order (case sensitive): mathematica comes before Mathematica |
||
Comparing for equality (case insensitive): mathematica and Mathematica ARE equal</pre> |
Comparing for equality (case insensitive): mathematica and Mathematica ARE equal</pre> |
||
=={{header|MATLAB}} / {{header|Octave}}== |
=={{header|MATLAB}} / {{header|Octave}}== |