truthy – the assertion will pass and the game will continue as normal
falsey – the assertion will fail and a game assert will be triggered, followed by a Javascript error
If a debugger is attached to Warzone, when a game assert is thrown Warzone will halt to allow debugging. Otherwise the game will continue running.
An error will be logged to the log file and console (see debug() for platform-specific access to console messages) should the assertion fail.
Example
// this should pass (and do nothing)
hackAssert(true, "this should do nothing");
// this should fail (and cause a game assert + JS error)
hackAssert(false, "NASDA routine systems test: What could possibly go wrong?");
This function is likely to be changed in the future.