Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

patatom

1984 Version of ANSI Standard

patatom

See patatom for formal definition.

  1. Result Right Arrow A.
  2. Zero ("0") Right Arrow A.
  3. Minus one ("–1") Right Arrow B.
  4. Result Right Arrow B.
  5. A Right Arrow B.
  6. Result Right Arrow C.
  7. Result as "literal" C.
  8. Concatenate (C,Result) Right Arrow C.
  9. If B is not minus one and B<A, trap execution.
    If A is not zero and B is net zero, place the 3-tuple (A,B,C) Right Arrow Result.
    Otherwise, null string ("") Right Arrow Result.

Note: The Result returned by patatom is a 3-tuple, where the value of the first element is either zero or the value of the first intlit, the value of the second element is either –1 (indefinite), or the value of the second intlit, and the value of the third element is either the result from strlit as "literal", or a string of patcodes. If the specified or implied value of both intlit is zero, patatom returns the null string.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

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 16-Nov-2023, 11:31:54.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)