<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="setvariables" level="style" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="set">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="reset">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setevariables" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="set">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="reset">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setgvariables" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="set">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="reset">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setxvariables" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="set">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="reset">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="checkvariables" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="set">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="reset">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setvariable" level="style" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-value"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setevariable" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-value"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setgvariable" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-value"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setxvariable" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-value"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getvariable" level="style" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="showvariable" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsevariable" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifvariableelse" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifvariable" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotvariable" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseemptyvariable" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifemptyvariableelse" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifemptyvariable" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotemptyvariable" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getvariabledefault" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-command"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupenv" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="set">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="reset">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseenv" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifenvelse" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifenv" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotenv" level="system" category="strings" keywords="conditional" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="env" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="envvar" level="system" category="strings" file="core-env.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-command"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setdocumentfilename" category="strings" level="system" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setdocumentargument" category="strings" level="system" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setdocumentargumentdefault" category="strings" level="system" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getdocumentfilename" level="system" category="strings" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getdocumentargument" level="system" category="strings" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getdocumentargumentdefault" level="system" category="strings" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsedocumentargument" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifdocumentargumentelse" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifdocumentargument" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotdocumentargument" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsedocumentfilename" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifdocumentfilenameelse" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifdocumentfilename" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotdocumentfilename" level="system" category="strings" keywords="conditional" file="luat-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
