assert

assert(condition[, message])
Parameters
  • condition (boolean) – A condition to assert on

  • message (string) – An optional error message

Stops the script execution if the condition is false. Emits the error message to log. Useful for debugging