How do I make the Status of ScriptResults() to be Failure?

A question I have is:
When I Exit All, how do I fail the script?

if (condition 1)
make ScriptResult().status to be Failure
Exit All
end if

In other words, how do I make the Status of ScriptResults() function to be “Failure” instead of “Success”?

Thankks,

Use the logError command; any time that command is run the script is logged as a failure.

Thanks Matt