☜ | String Relations1977 Version of ANSI Standard | ☞ |
The relations = ] [ do not imply any numeric interpretation of either of their operands.
The relation = tests string identity. If the operands are not known to be numeric and numeric equality is to be tested, the programmer may apply an appropriate unary operator to the nonnumeric operands. If both arguments are known to be in numeric form (as would be the case, for example, if they resulted from the application of any operator except _), application of a unary operator is not necessary. The uniqueness of the numeric representation guarantees the equivalence of string and numeric equality when both operands are numeric. Note, however, that the division operator / may produce inexact results, with the usual problems attendant to inexact arithmetic.
The relation [ is called "contains". A [ B is true if and only if B is a substring of A; that is, A [ B has the same value as ''$F(A,B). Note that the empty string is a substring of every string.
The relation ] is called "follows". A ] B is true if and only if A follows B in the conventional ASCII collating sequence, defined here. A follows B if and only if any of the following is true.
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
This page most recently updated on 15-Nov-2023, 13:18:01.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)