[M (MUMPS)/en] One-liner

^cars("Tesla",1,"Name") 
was defined in line 119
s ^cars("Tesla",1,"Name")="Model 3"
This commit is contained in:
Firestorm2k7 2019-02-13 11:06:16 +01:00 committed by GitHub
parent f3c25c4501
commit 11033094d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ w !,^cars
w !,^cars("Tesla")
; null value - there's no value assigned to this node but it has children
w !,^cars("Tesla",1,"Name")
; Model X
; Model 3
```
Arrays are automatically sorted in order. Take advantage of the built-in sorting by setting your value of interest as the last child subscript of an array rather than its value.