Concordion > Commands > echo >

Displaying Nulls

Nulls are wrapped in <em> tags (i.e. <em>null</em>) to make a visual distinction between the string "null" and a null value.

The value is appended to any child markup.

Examples

Given the expression "username" returns a null, we expect the following results:

We have stripped out the concordion:echo attributes from the "expected output" for legibility. They may be present.

Instrumentation Expected output
<span concordion:echo="username" />
<span><em>null</em></span>
<span concordion:echo="username"></span>
<span><em>null</em></span>
<span concordion:echo="username">abc</span>
<span>abc<em>null</em></span>
<span concordion:echo="username"><b>abc</b></span>
<span><b>abc</b><em>null</em></span>