put flag in a macro to be tested afterwards

To avoid writing lots of identical tests in several macros, I wonder whether it is possible to have flags to be turned to special values in a macro, so as to be tested afterwards by another macro to perform the right actions.

If it already exists, please excuse my ignorance.

Example:
Macro 1:
<choose>
<if variable="....">
<text flag1="1"/>
</if>
<else>
<text flag1="2"/>
</else>
</choose>

Macro 2:
<choose>
<if flag1="1">
<text .../>
</if>
</choose>

Macro 3:
<choose>
<if flag1="2">
<text .../>
</if>
</choose>
Sign In or Register to comment.