Hi!
In NXSL, you can use any integer value as boolean, where 0 means false and any-non-zero value means true. So, you can use errorCount attribute as boolean flag if you wish, like below:
if (dci->errorCount)
{
// Processing if error
}
else
{
// Processing if OK
}
You can also apply boolean logic operations to integer values, for example:
if (!dci->errorCount)
{
// Processing if there are no errors
}
Best regards,
Victor