Find String

Find the index of a substring in a base string starting at pos, or -1 if the string is not found.

Installation

To use this node enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Pos (inputs:pos)

int

The starting position to search for the string.

0

String (inputs:string)

['string', 'token']

The base string.

None

Value (inputs:value)

['string', 'token']

The string to search for.

None

Outputs

Name

Type

Descripton

Default

Index (outputs:index)

int

The index of the first occurrence of string, or -1 if not found.

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.FindString

Version

1

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Find String

Categories

function

Generated Class Name

OgnFindStringDatabase

Python Module

omni.graph.nodes