MUMPS 程序语言的操作符

MUMPS Operators

Here are some key operators used in the MUMPS programming language:

  • + : Addition
  • - : Subtraction
  • * : Multiplication
  • / : Division
  • ** : Exponentiation
  • _ : Concatenation of strings
  • = : Assignment
  • <> : Inequality operator
  • > : Greater than
  • < : Less than
  • [] : Subscript operator for arrays
  • $S( : Start conditional if statement
  • $G( : Get value of global or local variable
  • $D( : Check if variable is defined
  • $O( : Ordering for traversing globals
  • $E( : Escape special characters

Some key things to note are the use of $ for special variables and functions, square brackets for arrays, and underscore for concatenating strings. The syntax has similarities to other languages but also some unique aspects like $S( conditionals and globals using $G()`.