← All source files

V14 / fad4e1a110e5

file_branch_demo.xml

Lilith/Core/Scenarios/Definitions/file_branch_demo.xml

Unchanged from the preceding version
XMLStructureInputsTools / C#StepsExit
<scenario schemaVersion="2" id="file_branch_demo" title="Two runs, two branches">
  <inputs>
    <input name="first_path" default="first.txt" />
    <input name="second_path" default="second.txt" />
  </inputs>
  <systemPrompt>Execute the declared condition and nested scenario. Report only verified workspace results.</systemPrompt>
  <steps>
    <if workspacePath="{{first_path}}" exists="false">
      <then>
        <run scenario="workspace_save">
          <input name="path" value="{{first_path}}" />
          <input name="content" value="hello" />
        </run>
      </then>
      <else>
        <run scenario="workspace_save">
          <input name="path" value="{{second_path}}" />
          <input name="content" value="again" />
        </run>
      </else>
    </if>
  </steps>
  <exit mode="copy">Return the verified save receipt unchanged.</exit>
</scenario>