nxLibWaitForBoolValue

Navigation:  NxLib API > C Interface > Waiting >

nxLibWaitForBoolValue

Previous pageReturn to chapter overviewNext page

Wait for specific boolean value of an item. When the condition to wait for is already satisfied initially, the function returns immediately.

Signature

void nxLibWaitForBoolValue (NXLIBERR* result, NXLIBBOOL itemPath, NXLIBINT value, NXLIBBOOL waitForEqual);

Parameters

result

The error code of the operation. If the item is deleted during the wait operation, the return code will be NxLibItemInexistent.

itemPath

The path of the item to wait for.

value

The value to wait for.

waitForEqual

When true, the function waits until the item has the specified value, otherwise it waits until the item's value is different from the specified value.

Return Value

none