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

logicalop

Draft MDC Standard

7.2.2.4 Logical operator logicalop

    logicalop::=


&
!
!!



The operators !, !!, and & are called logical operators. (They are given the names or, exclusive or, and and, respectively.) They operate on the truth-value interpretations of their operands, and they produce truth-value results.

A ! B = { 0 if both A and B have the value 0
1 otherwise
A & B = { 1 if both A and B have the value 1
0 otherwise

The multi-character operators '&, '! And '!! are defined by:

    A '& B = '(A & B)
A '! B = '(A ! B)
A '!! B = '(A !! B)
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.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 15-Nov-2023, 13:18:49.

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