Skip to content

← diagnostics package

AssertEqual

Assert that the given data is equal to the configured value throw an error otherwise.

This will throw an error of type AssertionError, which can be caught with an enclosing Except node if desired. This node will pass the data out unchanged. Version 1.0.0

Ports/Properties

data

Data to process.

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

value

Constant value to compare with.

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

ignore_if_none

Ignore the assertion if the data is None.

verbose name
Ignore If None
default value
False
port type
BoolPort
value type
bool (can be None)

msg

Message to show if the condition is not met.

verbose name
Msg
default value
The value was not equal to the expected value.
port type
StringPort
value type
str (can be None)

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)