Returns a numeric value with the result of the last execution of the tag <runtime.exec />.

1 runtime.status

<runtime.status />
Example

Create the directory /tmp/test and check if it has been performed successfully.

Copy
<xsql-script name='runtime_status_sample1'>
    <body>
        <runtime.exec>
            <string>/bin/mkdir /tmp/test</string>
        </runtime.exec>

        <if>
            <expr><eq><runtime.status />0</eq></expr>
            <then>
                <println>The directory has been successfully created.</println>
            </then>
            <else>
                <println>ERROR: The directory can not be created.</println>
            </else>
        </if>
    </body>
</xsql-script>