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

Truth-Value Interpretation

Annotations

tvexpr

Introduced in the 1977 ANSI M[UMPS] language standard.

This metalanguage symbol represents the truth value interpretation of an expression. In order to produce the truth value interpretation of an expression, first the expression is evaluated, and then reduced to its canonical numeric representation; after this, if the numeric value is nonzero, it is replaced by 1.

String value Truth value interpretation
123 1
"apples" 0
"25 apples" 1
"seven apples" 0
5.23 1
-5.23 1
1.7 1
-1.7 1
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 12-Sep-2014, 13:12:24.

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