HasValue

Determines whether the given parameter is a reference syntax with a non-null, non-empty, or non-blank value.

Syntax

HasValue( v )

Parameters

Parameter

Description

v

A valid reference syntax expression.

If v is not a reference syntax, the function returns false ( 0 ).

Examples

The following expressions are examples that use the HasValue function.

Expression

Returns

HasValue(2)

True ( 1 )

HasValue(" ")

False ( 0 )

HasValue(Amount[*])

Error

HasValue(Amount[0])

Evaluates the first occurrence of Amount and returns true ( 1 ) if it is a non-null, non-empty, or non-blank value.

// Ethnio survey code removed