beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ArrayGetNumberByPath Op

ArrayGetNumberByPath

finds a number at a position in an array defined by path


useful when working with nested data structures.

the path defines the way to the number. the number will be returned

given an array like this:

[ 1,2,3,4,5]

a path of 1 will return 2:


Edit Documentation

Full Name
  • Ops.Json.ArrayGetNumberByPath
Visibility
  • Core Op - Official cables op
Author


 

INPUT PORTS


Array (Array)
Path (String)

the past (i.e. person.age)

OUTPUT PORTS


Output (Number)

the number

Found (boolean Number)

Usages of ArrayGetNumberByPath

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


cloned op from Ops.Json.ObjectGetNumberByPathuser avatarcables - 2021-01-08
Ops.User.cables.ArrayGetNumberByPath renamed to Ops.Json.ArrayGetNumberByPathuser avatarcables - 2021-01-08