RESULT Element 
You use the RESULT element to test the results of the MODULE call.
The RESULT element is always used together with the EXPR element, which defines a valid HTMLBusiness expression.
If the MODULE call test is successful, the RESULT element defines the next state or the next template.
To define a test, you use the EXPR element within the RESULT element.
Use the ABAP control structures, see the example below.
In the flow file in the standalone ITS, the syntax is as follows:
Syntax
<state name="state1" >
<module name="RFC_PING" type="RFC" stateful="0">
<result next_template="test3_result">
<expr>MY_VAR</expr>
</result>
<default next_template="test3_default" />
</module>
</state>