Written by

Web Developer
Question Mack Altman · Apr 20, 2018

How to determine depth of a global?

I was wondering if there was a way to easily identify the node depth of a global.

Take the following global example. Is there way to determine the depth is 3?

s ^global("first","second","third")="some^info^here"

Comments

Eduard Lebedyuk · Apr 20, 2018

There's a function for it called $QLength:

write $QLENGTH($name(^global("first","second","third")))
>3

$Name is used to get global name as a variable.

0