Products Applications Downloads Features Wiki forum Store

opdigits()

From Wiki077
Jump to: navigation, search


float opdigits(string name)

This function will return the numeric value of the last set of consecutive digits in a node's name. It is used when building several similar networks. This expression expects a path to a node, if the node doesn't exist, it will return 0.

opdigits(".") means the digits of the node that the expression is in. Tip: It is the same as the variable $OD.

opdigits("..") means the digits of the parent of the node. Tip: It is the same as the variable $OPD.

opdigits("../..") is the digits of the parent of the parent.

Examples

opdigits("/obj/geo22")  = 22
opdigits("..") = 7             (if the current component is named geo7 for example)

See Also

opname(), digits(), opbase(), base(), opfullpath(), Variables

Personal tools