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:


Full Name
  • Ops.Data.JsonPath.ArrayGetNumberByPath
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


INPUT PORTS


Array (Array)
Path (String)

the past (i.e. person.age)

OUTPUT PORTS


Output (Number)

the number

Found (booleanNumber)

 

Patches using ArrayGetNumberByPath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Json.ObjectGetNumberByPathuser avatarcables - 2021-01-08 17:26
Ops.User.cables.ArrayGetNumberByPath renamed to Ops.Json.ArrayGetNumberByPathuser avatarcables - 2021-01-08 17:29
improvementchange errorlevels, show hint when no path provideduser avatarstephan - 2025-01-14 11:34
improvementchange "found" port to boolNum typeuser avatarstephan - 2025-03-07 14:38
improvementshow full path in extended titleuser avatarstephan - 2025-05-21 14:04