☜ | unaryop1984 Version of ANSI Standard | ☞ |
There are three unary operators: ' (not), + (plus), and - (minus).
Not inverts the truth value of the expratom immediately to its right. The value of 'expratom is 1 if the truth-value interpretation of expratom is 0; otherwise its value is 0. Note that '' performs the truth-value interpretation.
Plus is merely an explicit means of taking a numeric interpretation. The value of + expratom is the numeric interpretation of the value of expratom.
Minus negates the numeric interpretation of expratom. The value of -expratom is the numeric interpretation of -N, where N is the value of expratom.
Note that the order of application of unary operators is right-to-left.
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, 10:46:00.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)