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

ArrayGetStringByPath Op

Ops.Json.ArrayGetStringByPath


ArrayGetStringByPath
Namespace: Ops.Json

Op author: stephan

Finds a string at a position in an array defined by path


useful when working with nested data structures.

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

given an array like this:

[ "alyx","gordon","eli","g-man"]

a path of 2 will return eli:



Inputs

Array (Array)
Path (String)

the path (i.e. data.names)

Return path if missing (boolean /Number)

Outputs

Output (String)

the string

Found (boolean Number)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

ArrayGetStringByPath - Example

Open Example In Editor

Patches using ArrayGetStringByPath

Changelog


cloned op from Ops.Json.ObjectGetStringByPath
2021-01-08 - cables
Ops.User.cables.ArrayGetStringByPath renamed to Ops.Json.ArrayGetStringByPath
2021-01-08 - cables