Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

function::assert

Name

function::assert — evaluate assertion

Synopsis

assert(expression:,msg:)

Arguments

expression
The expression to evaluate
msg
The formatted message string

Description

This function checks the expression and aborts the current running probe if expression evaluates to zero. Uses error and may be caught by try{} catch{}.