> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/scenarios/condition-types/simple-condition.md).

# Simple Condition​

A condition is an XSLT mapping applied to the source envelope of a step. A simple condition must return `true` or `false` in XML format:

{% code title="result.xml" lineNumbers="true" %}

```xml
<result>
    true
</result>
```

{% endcode %}

Example condition XSLT:

{% code title="simple-condition.xslt" lineNumbers="true" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <result>
            <xsl:choose>
                <xsl:when test="envelope/documents/document[@id='document_id']/field[@name='field_name'] &gt; 0">
                    true
                </xsl:when>
                <xsl:otherwise>
                    false
                </xsl:otherwise>
            </xsl:choose>
        </result>
    </xsl:template>
</xsl:stylesheet>
```

{% endcode %}
