Skip to content

← programming package

Contains

Check if the given object contains a specified item or, depending on context, field.

Specifically, for nodes and axes, the item can be the name of a port or axis array or property field to check for. For dictionaries, the contains test checks the keys but not the values. For strings, the contains test checks if the item is a substring of the string. For arrays, the test checks all elements of the flattened array. Note that, if the data is None, the result will be None, but if the item is None, the result is True or False depending on the outcome of the query. Version 1.0.0

Ports/Properties

data

Container to check.

verbose name
Data
default value
None
port type
DataPort
value type
object (can be None)
data direction
IN

item

Candidate item.

verbose name
Item
default value
None
port type
Port
value type
object (can be None)

result

Result.

verbose name
Result
default value
None
port type
DataPort
value type
bool (can be None)
data direction
OUT

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)