DefaultStr

DefaultStr returns a default Variant of subtype String if the passed expression is a Variant of subtype Null or Empty, or if the passed string expression is empty. 

Syntax

DefaultStr(expression, default)

Parameters
expression
Any kind of Variant. The Variant can be of type Null or Empty
default
Any kind of Variant
Return Value

A Variant of subtype String. 

Example

Dear <%=DefaultStr(Record.Fields("Name"), "Customer"%>,

See Also

VBScript Reference