ContextGetPathForString

Searches for string in context and returns context path, returns null if not found.

javascript · Common Scripts

Details

IDContextGetPathForString
Languagejavascript
From Version5.0.0

README

Searches for a string in context and returns the context path, it will return null if nothing is found.

Script Data


Name Description
Script Type javascript
Tags  

Inputs


Argument Name Description
path The path in context to search the string in. If the path is not given, the search will be in the whole context.
str The string to search for in context.

Outputs


There are no outputs for this script.

commonfields:
  id: ContextGetPathForString
  version: -1
name: ContextGetPathForString
script: ''
type: javascript
tags: []
comment: Searches for string in context and returns context path, returns null if
  not found.
enabled: true
args:
- name: path
  description: Path in context to search the string in. If path is not given, search
    will be in the whole context.
- name: str
  required: true
  description: String to search for in context
scripttarget: 0
fromversion: 5.0.0
tests:
- No tests