successful

Navigation:  NxLib API > C++ Interface > NxLibCommand >

successful

Previous pageReturn to chapter overviewNext page

Checks whether the previous command execution was successful.

Note: This does not check if the command has already finished executing!

Signatures

Error handling via exception:

bool successful()

Error handling via return code:

bool successful(int* returnCode)

Parameters

returnCode

The API return code.

Return Value

true, when the previous NxLib command execution was successful, i.e. there is no ErrorSymbol node under the Result node. Otherwise false.