Sha256: f76b0cae539543e8f4cbcdb6a4ff7d30c2e146b8b84653743e1281ccfa5fb7ed

Contents?: true

Size: 986 Bytes

Versions: 1

Compression:

Stored size: 986 Bytes

Contents

<?xml version="1.0" encoding="ISO-8859-1"?>
<tml xmlns="http://www.ingenico.co.uk/tml" cache="deny">
  <head />

  <vardcl name="counter" type="integer" />
  <vardcl name="target" type="integer" />

  <screen id="init" next="#idle">
    <setvar name="counter" lo="0" />
    <setvar name="target" lo="5" />
  </screen>

  <screen id="idle" next="#count">
    <display>
      <form>
        How Many Loops? <input type="number" name="target" />
      </form>
    </display>
  </screen>

  <screen id="count" next="#loop" timeout="1">
    <setvar name="counter" lo="tmlvar:counter" op="plus" ro="1" />
    <display>
      Counter: <getvar name="counter" />
    </display>
  </screen>

  <screen id="loop">
    <next uri="#count">
      <variant uri="#complete" lo="tmlvar:counter" op="equal" ro="tmlvar:target" />
    </next>
  </screen>

  <screen id="complete" next="#init" timeout="3">
    <display>
      Done: looped <getvar name="counter" /> times.
    </display>
  </screen>
</tml>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtml-2.0.4 spec/support/raw_tml/loop_x_times.tml