Concordion > Commands >

set

A set command sets a temporary variable to the text contents of the instrumented element, so that it can be referenced by another command.

Example

The following instrumentation:

<p>
    My name is <b concordion:set="#fullName">David Peterson</b>.
    
    <span concordion:execute="setUpUser(#fullName)" />
</p>

Calls the method setUpUser() with the string value David Peterson.