isstr()

Returns true if the expression is a string, and false otherwise. If the expression is null, it returns false.

Syntax

isstr(EXPR)
Required Parameters
EXPR
Expression that returns the value to be checked.

Usage

json "{}" | eval bool=isstr("string") => true

json "{}" | eval bool=isstr(0) => false

json "{}" | eval bool=isstr(null) => false