Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Verstehe Verhalten von "Zähler i von bis" nicht

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    13
    1
    116

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    561

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

Verstehe Verhalten von "Zähler i von bis" nicht

Geplant Angeheftet Gesperrt Verschoben Blockly
10 Beiträge 4 Kommentatoren 593 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • David G.D Online
    David G.D Online
    David G.
    schrieb am zuletzt editiert von David G.
    #1

    Hallo,

    ich habe gestern in einem Script den Baustein "Zähle i von bis" verwendet.

    Doch irgendwie verstehe ich das Verhalten nicht ganz.

    Anbei der relevante Teil aus dem Blockly (hab es aus dem Hauptteil rauskopiert):
    Screenshot_20241024_211730_Chrome.jpg

    Die Schleife soll so oft durchlaufen werden wie die Anzahl der Etiketten, diese wird vorher im Skript korrekt berechnet.

    Wenn ich das Script zum ersten Mal ausführe stimmt alles und in meiner view sieht es so aus:
    Screenshot_20241024_211823_Chrome.jpg

    Es wurde eine Tabelle mit 5 Zeilen (Anzahl Etiketten) generiert.
    Wenn ich das Script nochmal ausführe werden mir allerdings 10 Zeilen generiert.
    Screenshot_20241024_211837_Chrome.jpg

    Dann 15, 20 usw.

    Warum fängt i nicht immer wieder bei 1 an?

    Zeigt eure Lovelace-Visualisierung klick
    (Auch ideal um sich Anregungen zu holen)

    Meine Tabellen für eure Visualisierung klick

    CodierknechtC H 2 Antworten Letzte Antwort
    0
    • David G.D David G.

      Hallo,

      ich habe gestern in einem Script den Baustein "Zähle i von bis" verwendet.

      Doch irgendwie verstehe ich das Verhalten nicht ganz.

      Anbei der relevante Teil aus dem Blockly (hab es aus dem Hauptteil rauskopiert):
      Screenshot_20241024_211730_Chrome.jpg

      Die Schleife soll so oft durchlaufen werden wie die Anzahl der Etiketten, diese wird vorher im Skript korrekt berechnet.

      Wenn ich das Script zum ersten Mal ausführe stimmt alles und in meiner view sieht es so aus:
      Screenshot_20241024_211823_Chrome.jpg

      Es wurde eine Tabelle mit 5 Zeilen (Anzahl Etiketten) generiert.
      Wenn ich das Script nochmal ausführe werden mir allerdings 10 Zeilen generiert.
      Screenshot_20241024_211837_Chrome.jpg

      Dann 15, 20 usw.

      Warum fängt i nicht immer wieder bei 1 an?

      CodierknechtC Online
      CodierknechtC Online
      Codierknecht
      Developer Most Active
      schrieb am zuletzt editiert von
      #2

      @david-g
      Die Schleife ist nicht das Problem.
      Du ergänzt die globale Variable htmlVorschau immer weiter.
      Setze die im Trigger zuerst auf einen leeren String.

      "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

      Proxmox 9.1.1 LXC|8 GB|Core i7-6700
      HmIP|ZigBee|Tasmota|Unifi
      Zabbix Certified Specialist
      Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

      David G.D 1 Antwort Letzte Antwort
      0
      • David G.D David G.

        Hallo,

        ich habe gestern in einem Script den Baustein "Zähle i von bis" verwendet.

        Doch irgendwie verstehe ich das Verhalten nicht ganz.

        Anbei der relevante Teil aus dem Blockly (hab es aus dem Hauptteil rauskopiert):
        Screenshot_20241024_211730_Chrome.jpg

        Die Schleife soll so oft durchlaufen werden wie die Anzahl der Etiketten, diese wird vorher im Skript korrekt berechnet.

        Wenn ich das Script zum ersten Mal ausführe stimmt alles und in meiner view sieht es so aus:
        Screenshot_20241024_211823_Chrome.jpg

        Es wurde eine Tabelle mit 5 Zeilen (Anzahl Etiketten) generiert.
        Wenn ich das Script nochmal ausführe werden mir allerdings 10 Zeilen generiert.
        Screenshot_20241024_211837_Chrome.jpg

        Dann 15, 20 usw.

        Warum fängt i nicht immer wieder bei 1 an?

        H Offline
        H Offline
        hans_999
        schrieb am zuletzt editiert von
        #3

        @david-g said in Verstehe Verhalten von "Zähler i von bis" nicht:

        Warum fängt i nicht immer wieder bei 1 an?

        So wie es asschaut, fängt i sehr wohl wieder bei 1 an.
        Dieser Zähler läuft bis anzahl_etiketten. Was steht denn da drin? Kann es sein, das das beim zweiten Durchlauf auf 10, dann 15, ... steht? Der Programmteil fehlt ja leider.

        1 Antwort Letzte Antwort
        0
        • CodierknechtC Codierknecht

          @david-g
          Die Schleife ist nicht das Problem.
          Du ergänzt die globale Variable htmlVorschau immer weiter.
          Setze die im Trigger zuerst auf einen leeren String.

          David G.D Online
          David G.D Online
          David G.
          schrieb am zuletzt editiert von David G.
          #4

          @codierknecht

          Die Variable wird am Anfang immer geleert.
          Habe ich im Ausschnitt nicht drinnen. Sorry.

          Dann müsste die Aufzählung auch immer wieder bei 1 Anfangen, wenn ich die Variable nicht lösche.

          @hans_999

          Anzahl Etiketten wird einmalig ausgerechnet bevor die Schleife anfängt.

          Hier mit dem Anfang, hab alles was andere geschoben, sie sieht man es jetzt.
          Screenshot_20241024_214911_Chrome.jpg

          Zeigt eure Lovelace-Visualisierung klick
          (Auch ideal um sich Anregungen zu holen)

          Meine Tabellen für eure Visualisierung klick

          CodierknechtC 1 Antwort Letzte Antwort
          0
          • David G.D David G.

            @codierknecht

            Die Variable wird am Anfang immer geleert.
            Habe ich im Ausschnitt nicht drinnen. Sorry.

            Dann müsste die Aufzählung auch immer wieder bei 1 Anfangen, wenn ich die Variable nicht lösche.

            @hans_999

            Anzahl Etiketten wird einmalig ausgerechnet bevor die Schleife anfängt.

            Hier mit dem Anfang, hab alles was andere geschoben, sie sieht man es jetzt.
            Screenshot_20241024_214911_Chrome.jpg

            CodierknechtC Online
            CodierknechtC Online
            Codierknecht
            Developer Most Active
            schrieb am zuletzt editiert von
            #5

            @david-g
            Lass Dir doch mal ein paar Variablen per Debug ausgeben.

            "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

            Proxmox 9.1.1 LXC|8 GB|Core i7-6700
            HmIP|ZigBee|Tasmota|Unifi
            Zabbix Certified Specialist
            Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

            David G.D 1 Antwort Letzte Antwort
            0
            • CodierknechtC Codierknecht

              @david-g
              Lass Dir doch mal ein paar Variablen per Debug ausgeben.

              David G.D Online
              David G.D Online
              David G.
              schrieb am zuletzt editiert von David G.
              #6

              @codierknecht

              Hab ich schon bei allen.
              Sehen alle gut aus, bis auf "i".

              Das ist beim Ersten Durchlauf 5, dann 10, 15 usw

              Bei bedarf hier das Blockly

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="6}Ybax|wWlLJ/?9ioMcK">ab</variable>
                  <variable id=";az|Ljyjj.21-If[+Xfd">bis</variable>
                  <variable id="nP#}-.c,Sx!G)c%p-{3J">zu</variable>
                  <variable id="?PJ3vD@jX_t^7fwX$LTS">Auflage</variable>
                  <variable id="ci.zX8,sgK[L[xxWc.~~">html</variable>
                  <variable id="OexA^[5UmI0$r~;H^NN`">html_vorschau</variable>
                  <variable id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</variable>
                  <variable id="c~n1hj_hfoevi-Eog;(m">i</variable>
                </variables>
                <block type="on" id="yoWNeDWI3DvHsBXIY/TI" x="-812" y="-4562">
                  <field name="OID">0_userdata.0.Etiketten_Nummerrierung.etiketten_generieren</field>
                  <field name="CONDITION">true</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="S5Y]0BGX7=?Ku^p`[{0+">
                      <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                      <value name="VALUE">
                        <block type="get_value" id=",AA~Mysd`(x]132I{d@F">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="z{JXEC}sf0hOo]17;2Xh">
                          <field name="VAR" id=";az|Ljyjj.21-If[+Xfd">bis</field>
                          <value name="VALUE">
                            <block type="get_value" id="GRZkYN!];tB3aH7p,;Wn">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Etiketten_Nummerrierung.bis_nummer</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="Y=wgg.HTTzMHqhVc3%aF">
                              <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                              <value name="VALUE">
                                <block type="get_value" id="HIn,fv5R?TwNL8]GutG-">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="c3RyX:5tb$_k4J`x/sOK">
                                  <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                  <value name="VALUE">
                                    <block type="math_arithmetic" id="Q=2;.b~NW8l7Kl_l]03F" inline="false">
                                      <field name="OP">MINUS</field>
                                      <value name="A">
                                        <shadow type="math_number" id="Mo3{Y2=0~}Gc%^0xW!ho">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="variables_get" id="pOgzS!gUnyuvC$U/u}/C">
                                          <field name="VAR" id=";az|Ljyjj.21-If[+Xfd">bis</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="N^XCc@Obfgw6f9SS/SF8">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="variables_get" id="45Mt8js9;}JExL!@J6g+">
                                          <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="82iU7#2C3i=u3YO,n4;0">
                                      <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                      <value name="VALUE">
                                        <block type="text" id="92)JCJgxFxm[c[{V}/}?">
                                          <field name="TEXT"></field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="hH0E|.,Opop#D%fV#*D%">
                                          <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                          <value name="VALUE">
                                            <block type="text" id="f6g-^Xl9*zZh4e@oi{xG">
                                              <field name="TEXT"></field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="math_change" id="4R%_dd.xRUS]?l[tkBL9">
                                              <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="a,[TG4wOZnM_J^lM7c6n">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="math_round" id="gb+ThfNc0@-B^y2*GAKx">
                                                  <field name="OP">ROUNDUP</field>
                                                  <value name="NUM">
                                                    <shadow type="math_number" id="/TrPN.v+jZIPI@?m~:#K">
                                                      <field name="NUM">3.1</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="BnS+O`u[m??Q8m`?15oA" inline="false">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="Skf9Jm)Q*9,S/,EHYUI`">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id=":K/vc~/tibU-vhlx*o@[">
                                                          <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="i_u-244:Uc$VLK-(s,*}">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="variables_get" id="5RN`.!dSrey:.Fr#8}pC">
                                                          <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="timeouts_wait" id="XR}#./?,}BI[W.MyB1FK">
                                                  <field name="DELAY">1000</field>
                                                  <field name="UNIT">ms</field>
                                                  <next>
                                                    <block type="controls_for" id="A2[cz,deLatrt_6Z+-B]">
                                                      <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                      <value name="FROM">
                                                        <shadow type="math_number" id="P4]CyS.:6194}H?W`fru">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="math_number" id="4%U,6W;v-k,PAh8x+IN?">
                                                          <field name="NUM">1</field>
                                                        </block>
                                                      </value>
                                                      <value name="TO">
                                                        <shadow type="math_number" id="-|ZlWJ|[3OgQbz:dluF)">
                                                          <field name="NUM">10</field>
                                                        </shadow>
                                                        <block type="variables_get" id="UWSYqPr)A@;lioPhoO%7">
                                                          <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                        </block>
                                                      </value>
                                                      <value name="BY">
                                                        <shadow type="math_number" id="FpV;Wy?#T#hop-D=Ed@u">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                      </value>
                                                      <statement name="DO">
                                                        <block type="variables_set" id="P.zR1fd$_a9PETm7i#y%">
                                                          <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                                          <value name="VALUE">
                                                            <block type="text_join" id=";5YkK(U-WX%%Q0?QS]o:">
                                                              <mutation items="8"></mutation>
                                                              <value name="ADD0">
                                                                <block type="variables_get" id="4qXrMP+AVVG2Tfc~d]@[">
                                                                  <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="text" id="|^z/eARxabYHnMbDy-:v">
                                                                  <field name="TEXT">&lt;tr&gt;     &lt;td&gt;</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="variables_get" id=";c)mT9le^2OQ?jbAx{uv">
                                                                  <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD3">
                                                                <block type="text" id="EzJ7QkCNJr?;hVlifZI6">
                                                                  <field name="TEXT">.&lt;/td&gt;&lt;td&gt;</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD4">
                                                                <block type="math_arithmetic" id="6Nu_)e^~jx4/+c(:6mz:" inline="false">
                                                                  <field name="OP">ADD</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="-Ga+h8HoPe7y`_B(~bbM">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="WiQ)M[_MY9S.n2s2lF)S" inline="false">
                                                                      <field name="OP">MINUS</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="[iuC5Hek;$h6(,Zx6GH7">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="|?c.pU8qeYzi0mVq7:}l">
                                                                          <field name="OP">MULTIPLY</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="Pd]CNJp-d}qz;/z{%X]m">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="hOWHo~32^THS:HtYJb.8">
                                                                              <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="m^,_!RjF%a653.M|6(]b">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="hW.:xEw%@|MV{Bn~u@:+">
                                                                              <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id="tbbDNqQT^#gzxaNkhEj{">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="Q~fNWGhJpPICR,$kO]HE">
                                                                          <field name="OP">MINUS</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="#%|DxrY+1i[?5qu$NShI">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="%?)IUi3M1t|{Igsy9-l|">
                                                                              <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="9d2Q$vyj|*MzMy}R#IKX">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="t$8H@ALtw~%$eACjjIzk" inline="false">
                                                                      <field name="OP">MINUS</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="eT]{T1#Zw~Tp!PB2)(Tb">
                                                                          <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id="|id7DKlcbF00f-:_wti^">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="ADD5">
                                                                <block type="text" id="(3j.H?S1ORw.djFO`Z=)">
                                                                  <field name="TEXT"> - </field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD6">
                                                                <block type="logic_ternary" id="(^qbq^8QsdExTj,r}zDZ">
                                                                  <value name="IF">
                                                                    <block type="logic_compare" id="h,6z{%Ad%WRK|ySX;#`F">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="variables_get" id="Uk)4U0{^@76CzNkRLIh;">
                                                                          <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="variables_get" id="+QFolOm?i|+y.UacNrOW">
                                                                          <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="THEN">
                                                                    <block type="math_arithmetic" id=".x-zlP@)v~]CGX-e/$};" inline="false">
                                                                      <field name="OP">ADD</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="i`amE+Qlg!q#PQ9.Ou5m">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id=".UW:b]0mI9QR0SngyEZN">
                                                                          <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="6GZ$EZj@Zo5FV`0L!u{-" inline="false">
                                                                          <field name="OP">MINUS</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="uR$ddLC!?K;Toyi2#?zg">
                                                                              <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id=")0!89D7ys9:PcEs?rIzP">
                                                                              <field name="NUM">0</field>
                                                                            </shadow>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ELSE">
                                                                    <block type="math_arithmetic" id="F6Rfc/KKVwno,?DBJtQg">
                                                                      <field name="OP">MINUS</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="/fR*n`zPutq;!gIu?V,[">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="!zJnKO@$(!v@FZzWCWRW" inline="false">
                                                                          <field name="OP">ADD</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="xX252fE?=0KP}D;U6Y~F">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id="b8IYaQp}U9,mf`refvC6">
                                                                              <field name="OP">MULTIPLY</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="kA6:(`6`|.-0!Q|o.1+V">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="4OqUsMs$[b9+Qe,[i`@d">
                                                                                  <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="`eg{]G=6L/E(`u]U,Wg:">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="W(st[3w8~M#r`3Yq3k^p">
                                                                                  <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="G9$:2yhT%^V?/^pMXi/1">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="nVdE?9s7|4Et+UTm9nyu">
                                                                              <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id=";gd-EGKj0=IMlTMWq)wQ">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="ADD7">
                                                                <block type="text" id="J#%]Sm{2J)tF,zb1w`L|">
                                                                  <field name="TEXT">&lt;/td&gt;   &lt;/tr&gt;</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="variables_set" id="X9!+328yM|^vMhJQ,LL8">
                                                              <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                                              <value name="VALUE">
                                                                <block type="text_join" id=":qo!dtEz|$SkI/.BK.sa">
                                                                  <mutation items="2"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="variables_get" id="3vbG9o_Wf=@,C5cQ#Y#a">
                                                                      <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="text_join" id="YZwcc}E,TA/r|[bq?pB^">
                                                                      <mutation items="16"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="text" id="XSGU|vs0H?Zq63x9-s9J">
                                                                          <field name="TEXT">&lt;center&gt;&lt;b&gt;</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="get_value" id="l$b*oVIw^Li?*GG`|`M5">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Auftrag</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD2">
                                                                        <block type="text" id="=zWX.53pvcJJWFOxU,$0">
                                                                          <field name="TEXT">&lt;/b&gt;&lt;br&gt;&lt;div style="text-align: center; font-size: 12px; font-family: Arial;"&gt;</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD3">
                                                                        <block type="get_value" id="LzPYt}Vg:3]jD~}{7SSW">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Kunde</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD4">
                                                                        <block type="text" id="lg3/7}SXkBypDTlEjgIM">
                                                                          <field name="TEXT">&lt;/div&gt;&lt;br&gt;Karton </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD5">
                                                                        <block type="variables_get" id="4M!cN]k+924w0~!Rz_nh">
                                                                          <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD6">
                                                                        <block type="text" id="]9LNi=^XQpvf[}2EgW6z">
                                                                          <field name="TEXT"> von </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD7">
                                                                        <block type="variables_get" id="aqZQk{d=E`MXGo`:Ng$G">
                                                                          <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD8">
                                                                        <block type="text" id=",`3Dz[E.:@=k+RK%wsbh">
                                                                          <field name="TEXT">&lt;br&gt;</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD9">
                                                                        <block type="math_arithmetic" id="/VC!sVwK7tt:/7GILl]|" inline="false">
                                                                          <field name="OP">ADD</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="-Ga+h8HoPe7y`_B(~bbM">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id="oeMY7qXx-ld2H|v1bRx4" inline="false">
                                                                              <field name="OP">MINUS</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="[iuC5Hek;$h6(,Zx6GH7">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="[BSILueC34C%(bx[:1#8">
                                                                                  <field name="OP">MULTIPLY</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="Pd]CNJp-d}qz;/z{%X]m">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="whLaLH7n.KsF{uR!XI53">
                                                                                      <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="m^,_!RjF%a653.M|6(]b">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="get_value" id="5kFy!Y-1}_*OG^l=]a0K">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="tbbDNqQT^#gzxaNkhEj{">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="NhI@9ItSWZtqcrU.^-#u">
                                                                                  <field name="OP">MINUS</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="#%|DxrY+1i[?5qu$NShI">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="get_value" id="uzjF53LCP=M`sBZ0VIPl">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="Wm.-HZjT#vBA!B$9`bH!">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id="Z,qxs8@es37*Fu|Jm8RW" inline="false">
                                                                              <field name="OP">MINUS</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="get_value" id="}PfKe$.25-wi[0nrAW(A">
                                                                                  <field name="ATTR">val</field>
                                                                                  <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="%UfnLuY%mF?z.}EoUxQ:">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD10">
                                                                        <block type="text" id="1Exo[vqc_|C~w.dBjYhy">
                                                                          <field name="TEXT"> - </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD11">
                                                                        <block type="logic_ternary" id="MJ5,}H)h#4^S8{{{bfcd">
                                                                          <value name="IF">
                                                                            <block type="logic_compare" id="Hvn?f_(!!iejj=}{N!Eu">
                                                                              <field name="OP">EQ</field>
                                                                              <value name="A">
                                                                                <block type="variables_get" id="[f+?1zl-gdjn/0o|G[]P">
                                                                                  <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="variables_get" id="+CIL5/]XpA`MAQe2q2oJ">
                                                                                  <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <value name="THEN">
                                                                            <block type="math_arithmetic" id="_W^FbG+99XbN;C)9flkC" inline="false">
                                                                              <field name="OP">ADD</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="i`amE+Qlg!q#PQ9.Ou5m">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="$G5nXRaCPQ.)fon-Blv4">
                                                                                  <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="``jUV)3h-Jjr}/4xLOf@" inline="false">
                                                                                  <field name="OP">MINUS</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="get_value" id="FdzRR+%j-~/YuUAgX#zi">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id=",%BI;$Cse].dANLaGbqd">
                                                                                      <field name="NUM">0</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ELSE">
                                                                            <block type="math_arithmetic" id="LAPA:Eva6/@8Q@quc:9m" inline="false">
                                                                              <field name="OP">MINUS</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="n(H#L?qhB]A=-nb+C}Fs">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="ni3`DWX8DXx(G@{pTLY*" inline="false">
                                                                                  <field name="OP">ADD</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="i`amE+Qlg!q#PQ9.Ou5m">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="math_arithmetic" id="#T==IG7Ljw+pQPaW3)ri">
                                                                                      <field name="OP">MULTIPLY</field>
                                                                                      <value name="A">
                                                                                        <shadow type="math_number" id="kA6:(`6`|.-0!Q|o.1+V">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="W{I4_-M@1]:qv3h[BBOz">
                                                                                          <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <shadow type="math_number" id="`eg{]G=6L/E(`u]U,Wg:">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="get_value" id="Ca[PhJy5ke!^#[8in^?u">
                                                                                          <field name="ATTR">val</field>
                                                                                          <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="get_value" id="YrMVy`X0p.RZ51UR5*V5">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="v7@J3]Q}lWE}gIM!Bb3g">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD12">
                                                                        <block type="text" id="ADV[I{9O-?7n_WrrK?/%">
                                                                          <field name="TEXT">&lt;/center&gt;</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD14">
                                                                        <block type="text" id="5w~J^+*/`*?9*3cXa0);">
                                                                          <field name="TEXT">&lt;div class="footer"&gt;www.wilke-family.com&lt;/div&gt;</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD15">
                                                                        <block type="text" id="T~aBR6}Q.SqAQX=kW1C-">
                                                                          <field name="TEXT">&lt;div class="page-break"&gt;&lt;/div&gt;</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="update" id="qkbmC%1tfy0Qjy3j~dpF">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Aufstellung_html</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="text_join" id="9pinC?RRXQXU6Aw{rGM;">
                                                              <mutation items="3"></mutation>
                                                              <value name="ADD0">
                                                                <block type="text" id="LMHzR_P6#Hd2m0$~Q%Du">
                                                                  <field name="TEXT">&lt;table&gt;</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="variables_get" id="yAR$P*1IqHt93fHmhA|i">
                                                                  <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="text" id="|-Bk3--61%dCwKwX5v+X">
                                                                  <field name="TEXT">&lt;/table&gt;</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="exec" id="t$6XxW#SG#kl~QH::L2#" disabled="true">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                              <field name="LOG"></field>
                                                              <value name="COMMAND">
                                                                <shadow type="text" id="T}`mA#z~l$|ZRbu@bx|t">
                                                                  <field name="TEXT">mkdir html</field>
                                                                </shadow>
                                                              </value>
                                                              <next>
                                                                <block type="timeouts_wait" id="V1NJ7BN=r]):~a,|sKc?">
                                                                  <field name="DELAY">500</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <next>
                                                                    <block type="exec" id="KOuKx?FCQU:Ug)OBAO~w" disabled="true">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                      <field name="WITH_STATEMENT">FALSE</field>
                                                                      <field name="LOG"></field>
                                                                      <value name="COMMAND">
                                                                        <shadow type="text" id="uf~~cgN[.(.1M]xcvTu8">
                                                                          <field name="TEXT">text</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="71T#8=tK.S24aHPUfe}F">
                                                                          <mutation items="4"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="text" id="aayHJ)UzQvHPtr/dZ?mc">
                                                                              <field name="TEXT">cd html &amp;&amp; echo '</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="text" id="P[djPz3H3g|^L?9)=DK@">
                                                                              <field name="TEXT">&lt;style&gt;     @page {         size: 89mm 37mm;         margin: 1mm;     }      body {         font-family: Arial, sans-serif;         font-size: 16.5px;     }      .page-break {         page-break-after: always; /* Erzwingt einen Seitenumbruch nach dem Element */     }      .footer {         position: fixed; /* Fixiert das Element auf der Seite */         bottom: 1mm; /* Abstand vom unteren Rand */         right: 2mm; /* Abstand vom rechten Rand */         font-family: Arial, sans-serif; /* Schriftart Arial */         font-size: 8px; /* Schriftgröße 8px */     } &lt;/style&gt;</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD2">
                                                                            <block type="variables_get" id="/yHW6k){L}=95k=2@e9s">
                                                                              <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD3">
                                                                            <block type="text" id="F=t,4]aK3R4_9^Vmsye;">
                                                                              <field name="TEXT">' &gt; html.html</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="timeouts_wait" id="0Zxd8R[M|OT7HOzgwbiz">
                                                                          <field name="DELAY">500</field>
                                                                          <field name="UNIT">ms</field>
                                                                          <next>
                                                                            <block type="exec" id="BwlhyCgG$q[DKeuVJ2z7" disabled="true">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                              <field name="WITH_STATEMENT">FALSE</field>
                                                                              <field name="LOG"></field>
                                                                              <value name="COMMAND">
                                                                                <shadow type="text" id="DP(Fe#n5WCIygq{y[;sP">
                                                                                  <field name="TEXT">cd html &amp;&amp; weasyprint -p html.html postversand.pdf</field>
                                                                                </shadow>
                                                                                <block type="text_join" id="L-FKJ!bGGAy/Ch_[o%c_">
                                                                                  <mutation items="3"></mutation>
                                                                                  <value name="ADD0">
                                                                                    <block type="text" id="{%Y=3Fu|[%xP[zy!wBq9">
                                                                                      <field name="TEXT">cd html &amp;&amp; weasyprint -p html.html etiketten</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD2">
                                                                                    <block type="text" id="NO**OV%~*kxD~fq_|:4~">
                                                                                      <field name="TEXT">.pdf</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="update" id="Owr2Eg(v#K4$o`;1[u|z">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">0_userdata.0.Etiketten_Nummerrierung.etiketten_generieren</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="logic_boolean" id="9to)d8MQC4~f0^qbd.CR">
                                                                                      <field name="BOOL">FALSE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </xml>
              

              Edit
              Er rechnet auch sehr oft den zweiten Wert falsch.
              Anstatt 1. 100-150 steht da dann 1. 100-2000
              Screenshot_20241024_221314_Chrome.jpg
              Da rechnet er immer das Menge_Kiste/zu mal 10.
              Eine 10 gibt's aber nirgends....

              Zeigt eure Lovelace-Visualisierung klick
              (Auch ideal um sich Anregungen zu holen)

              Meine Tabellen für eure Visualisierung klick

              CodierknechtC 1 Antwort Letzte Antwort
              0
              • David G.D David G.

                @codierknecht

                Hab ich schon bei allen.
                Sehen alle gut aus, bis auf "i".

                Das ist beim Ersten Durchlauf 5, dann 10, 15 usw

                Bei bedarf hier das Blockly

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable id="6}Ybax|wWlLJ/?9ioMcK">ab</variable>
                    <variable id=";az|Ljyjj.21-If[+Xfd">bis</variable>
                    <variable id="nP#}-.c,Sx!G)c%p-{3J">zu</variable>
                    <variable id="?PJ3vD@jX_t^7fwX$LTS">Auflage</variable>
                    <variable id="ci.zX8,sgK[L[xxWc.~~">html</variable>
                    <variable id="OexA^[5UmI0$r~;H^NN`">html_vorschau</variable>
                    <variable id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</variable>
                    <variable id="c~n1hj_hfoevi-Eog;(m">i</variable>
                  </variables>
                  <block type="on" id="yoWNeDWI3DvHsBXIY/TI" x="-812" y="-4562">
                    <field name="OID">0_userdata.0.Etiketten_Nummerrierung.etiketten_generieren</field>
                    <field name="CONDITION">true</field>
                    <field name="ACK_CONDITION"></field>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="S5Y]0BGX7=?Ku^p`[{0+">
                        <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                        <value name="VALUE">
                          <block type="get_value" id=",AA~Mysd`(x]132I{d@F">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="z{JXEC}sf0hOo]17;2Xh">
                            <field name="VAR" id=";az|Ljyjj.21-If[+Xfd">bis</field>
                            <value name="VALUE">
                              <block type="get_value" id="GRZkYN!];tB3aH7p,;Wn">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Etiketten_Nummerrierung.bis_nummer</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="Y=wgg.HTTzMHqhVc3%aF">
                                <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                <value name="VALUE">
                                  <block type="get_value" id="HIn,fv5R?TwNL8]GutG-">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="c3RyX:5tb$_k4J`x/sOK">
                                    <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                    <value name="VALUE">
                                      <block type="math_arithmetic" id="Q=2;.b~NW8l7Kl_l]03F" inline="false">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow type="math_number" id="Mo3{Y2=0~}Gc%^0xW!ho">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="pOgzS!gUnyuvC$U/u}/C">
                                            <field name="VAR" id=";az|Ljyjj.21-If[+Xfd">bis</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="N^XCc@Obfgw6f9SS/SF8">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="45Mt8js9;}JExL!@J6g+">
                                            <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="82iU7#2C3i=u3YO,n4;0">
                                        <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                        <value name="VALUE">
                                          <block type="text" id="92)JCJgxFxm[c[{V}/}?">
                                            <field name="TEXT"></field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="hH0E|.,Opop#D%fV#*D%">
                                            <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                            <value name="VALUE">
                                              <block type="text" id="f6g-^Xl9*zZh4e@oi{xG">
                                                <field name="TEXT"></field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="math_change" id="4R%_dd.xRUS]?l[tkBL9">
                                                <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                <value name="DELTA">
                                                  <shadow type="math_number" id="a,[TG4wOZnM_J^lM7c6n">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="math_round" id="gb+ThfNc0@-B^y2*GAKx">
                                                    <field name="OP">ROUNDUP</field>
                                                    <value name="NUM">
                                                      <shadow type="math_number" id="/TrPN.v+jZIPI@?m~:#K">
                                                        <field name="NUM">3.1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="BnS+O`u[m??Q8m`?15oA" inline="false">
                                                        <field name="OP">DIVIDE</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="Skf9Jm)Q*9,S/,EHYUI`">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id=":K/vc~/tibU-vhlx*o@[">
                                                            <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="i_u-244:Uc$VLK-(s,*}">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="5RN`.!dSrey:.Fr#8}pC">
                                                            <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_wait" id="XR}#./?,}BI[W.MyB1FK">
                                                    <field name="DELAY">1000</field>
                                                    <field name="UNIT">ms</field>
                                                    <next>
                                                      <block type="controls_for" id="A2[cz,deLatrt_6Z+-B]">
                                                        <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                        <value name="FROM">
                                                          <shadow type="math_number" id="P4]CyS.:6194}H?W`fru">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="math_number" id="4%U,6W;v-k,PAh8x+IN?">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                        <value name="TO">
                                                          <shadow type="math_number" id="-|ZlWJ|[3OgQbz:dluF)">
                                                            <field name="NUM">10</field>
                                                          </shadow>
                                                          <block type="variables_get" id="UWSYqPr)A@;lioPhoO%7">
                                                            <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                          </block>
                                                        </value>
                                                        <value name="BY">
                                                          <shadow type="math_number" id="FpV;Wy?#T#hop-D=Ed@u">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                        </value>
                                                        <statement name="DO">
                                                          <block type="variables_set" id="P.zR1fd$_a9PETm7i#y%">
                                                            <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                                            <value name="VALUE">
                                                              <block type="text_join" id=";5YkK(U-WX%%Q0?QS]o:">
                                                                <mutation items="8"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="variables_get" id="4qXrMP+AVVG2Tfc~d]@[">
                                                                    <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="text" id="|^z/eARxabYHnMbDy-:v">
                                                                    <field name="TEXT">&lt;tr&gt;     &lt;td&gt;</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD2">
                                                                  <block type="variables_get" id=";c)mT9le^2OQ?jbAx{uv">
                                                                    <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD3">
                                                                  <block type="text" id="EzJ7QkCNJr?;hVlifZI6">
                                                                    <field name="TEXT">.&lt;/td&gt;&lt;td&gt;</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD4">
                                                                  <block type="math_arithmetic" id="6Nu_)e^~jx4/+c(:6mz:" inline="false">
                                                                    <field name="OP">ADD</field>
                                                                    <value name="A">
                                                                      <shadow type="math_number" id="-Ga+h8HoPe7y`_B(~bbM">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="math_arithmetic" id="WiQ)M[_MY9S.n2s2lF)S" inline="false">
                                                                        <field name="OP">MINUS</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="[iuC5Hek;$h6(,Zx6GH7">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="|?c.pU8qeYzi0mVq7:}l">
                                                                            <field name="OP">MULTIPLY</field>
                                                                            <value name="A">
                                                                              <shadow type="math_number" id="Pd]CNJp-d}qz;/z{%X]m">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="hOWHo~32^THS:HtYJb.8">
                                                                                <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="m^,_!RjF%a653.M|6(]b">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="hW.:xEw%@|MV{Bn~u@:+">
                                                                                <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="tbbDNqQT^#gzxaNkhEj{">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="Q~fNWGhJpPICR,$kO]HE">
                                                                            <field name="OP">MINUS</field>
                                                                            <value name="A">
                                                                              <shadow type="math_number" id="#%|DxrY+1i[?5qu$NShI">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="%?)IUi3M1t|{Igsy9-l|">
                                                                                <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="9d2Q$vyj|*MzMy}R#IKX">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="math_arithmetic" id="t$8H@ALtw~%$eACjjIzk" inline="false">
                                                                        <field name="OP">MINUS</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="eT]{T1#Zw~Tp!PB2)(Tb">
                                                                            <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="|id7DKlcbF00f-:_wti^">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD5">
                                                                  <block type="text" id="(3j.H?S1ORw.djFO`Z=)">
                                                                    <field name="TEXT"> - </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD6">
                                                                  <block type="logic_ternary" id="(^qbq^8QsdExTj,r}zDZ">
                                                                    <value name="IF">
                                                                      <block type="logic_compare" id="h,6z{%Ad%WRK|ySX;#`F">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="variables_get" id="Uk)4U0{^@76CzNkRLIh;">
                                                                            <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="variables_get" id="+QFolOm?i|+y.UacNrOW">
                                                                            <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="THEN">
                                                                      <block type="math_arithmetic" id=".x-zlP@)v~]CGX-e/$};" inline="false">
                                                                        <field name="OP">ADD</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="i`amE+Qlg!q#PQ9.Ou5m">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id=".UW:b]0mI9QR0SngyEZN">
                                                                            <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="6GZ$EZj@Zo5FV`0L!u{-" inline="false">
                                                                            <field name="OP">MINUS</field>
                                                                            <value name="A">
                                                                              <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="uR$ddLC!?K;Toyi2#?zg">
                                                                                <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id=")0!89D7ys9:PcEs?rIzP">
                                                                                <field name="NUM">0</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ELSE">
                                                                      <block type="math_arithmetic" id="F6Rfc/KKVwno,?DBJtQg">
                                                                        <field name="OP">MINUS</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="/fR*n`zPutq;!gIu?V,[">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="!zJnKO@$(!v@FZzWCWRW" inline="false">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <shadow type="math_number" id="xX252fE?=0KP}D;U6Y~F">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="math_arithmetic" id="b8IYaQp}U9,mf`refvC6">
                                                                                <field name="OP">MULTIPLY</field>
                                                                                <value name="A">
                                                                                  <shadow type="math_number" id="kA6:(`6`|.-0!Q|o.1+V">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="4OqUsMs$[b9+Qe,[i`@d">
                                                                                    <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="`eg{]G=6L/E(`u]U,Wg:">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="W(st[3w8~M#r`3Yq3k^p">
                                                                                    <field name="VAR" id="nP#}-.c,Sx!G)c%p-{3J">zu</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="G9$:2yhT%^V?/^pMXi/1">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="nVdE?9s7|4Et+UTm9nyu">
                                                                                <field name="VAR" id="6}Ybax|wWlLJ/?9ioMcK">ab</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id=";gd-EGKj0=IMlTMWq)wQ">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD7">
                                                                  <block type="text" id="J#%]Sm{2J)tF,zb1w`L|">
                                                                    <field name="TEXT">&lt;/td&gt;   &lt;/tr&gt;</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="variables_set" id="X9!+328yM|^vMhJQ,LL8">
                                                                <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                                                <value name="VALUE">
                                                                  <block type="text_join" id=":qo!dtEz|$SkI/.BK.sa">
                                                                    <mutation items="2"></mutation>
                                                                    <value name="ADD0">
                                                                      <block type="variables_get" id="3vbG9o_Wf=@,C5cQ#Y#a">
                                                                        <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD1">
                                                                      <block type="text_join" id="YZwcc}E,TA/r|[bq?pB^">
                                                                        <mutation items="16"></mutation>
                                                                        <value name="ADD0">
                                                                          <block type="text" id="XSGU|vs0H?Zq63x9-s9J">
                                                                            <field name="TEXT">&lt;center&gt;&lt;b&gt;</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD1">
                                                                          <block type="get_value" id="l$b*oVIw^Li?*GG`|`M5">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Auftrag</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD2">
                                                                          <block type="text" id="=zWX.53pvcJJWFOxU,$0">
                                                                            <field name="TEXT">&lt;/b&gt;&lt;br&gt;&lt;div style="text-align: center; font-size: 12px; font-family: Arial;"&gt;</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD3">
                                                                          <block type="get_value" id="LzPYt}Vg:3]jD~}{7SSW">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Kunde</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD4">
                                                                          <block type="text" id="lg3/7}SXkBypDTlEjgIM">
                                                                            <field name="TEXT">&lt;/div&gt;&lt;br&gt;Karton </field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD5">
                                                                          <block type="variables_get" id="4M!cN]k+924w0~!Rz_nh">
                                                                            <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD6">
                                                                          <block type="text" id="]9LNi=^XQpvf[}2EgW6z">
                                                                            <field name="TEXT"> von </field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD7">
                                                                          <block type="variables_get" id="aqZQk{d=E`MXGo`:Ng$G">
                                                                            <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD8">
                                                                          <block type="text" id=",`3Dz[E.:@=k+RK%wsbh">
                                                                            <field name="TEXT">&lt;br&gt;</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD9">
                                                                          <block type="math_arithmetic" id="/VC!sVwK7tt:/7GILl]|" inline="false">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <shadow type="math_number" id="-Ga+h8HoPe7y`_B(~bbM">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="math_arithmetic" id="oeMY7qXx-ld2H|v1bRx4" inline="false">
                                                                                <field name="OP">MINUS</field>
                                                                                <value name="A">
                                                                                  <shadow type="math_number" id="[iuC5Hek;$h6(,Zx6GH7">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="[BSILueC34C%(bx[:1#8">
                                                                                    <field name="OP">MULTIPLY</field>
                                                                                    <value name="A">
                                                                                      <shadow type="math_number" id="Pd]CNJp-d}qz;/z{%X]m">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="whLaLH7n.KsF{uR!XI53">
                                                                                        <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="m^,_!RjF%a653.M|6(]b">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="get_value" id="5kFy!Y-1}_*OG^l=]a0K">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="tbbDNqQT^#gzxaNkhEj{">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="NhI@9ItSWZtqcrU.^-#u">
                                                                                    <field name="OP">MINUS</field>
                                                                                    <value name="A">
                                                                                      <shadow type="math_number" id="#%|DxrY+1i[?5qu$NShI">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="get_value" id="uzjF53LCP=M`sBZ0VIPl">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="Wm.-HZjT#vBA!B$9`bH!">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="math_arithmetic" id="Z,qxs8@es37*Fu|Jm8RW" inline="false">
                                                                                <field name="OP">MINUS</field>
                                                                                <value name="A">
                                                                                  <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="get_value" id="}PfKe$.25-wi[0nrAW(A">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="%UfnLuY%mF?z.}EoUxQ:">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD10">
                                                                          <block type="text" id="1Exo[vqc_|C~w.dBjYhy">
                                                                            <field name="TEXT"> - </field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD11">
                                                                          <block type="logic_ternary" id="MJ5,}H)h#4^S8{{{bfcd">
                                                                            <value name="IF">
                                                                              <block type="logic_compare" id="Hvn?f_(!!iejj=}{N!Eu">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="variables_get" id="[f+?1zl-gdjn/0o|G[]P">
                                                                                    <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="variables_get" id="+CIL5/]XpA`MAQe2q2oJ">
                                                                                    <field name="VAR" id="N7+QOqx+Qr*6h`T]RR0M">anzahl_etiketten</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="THEN">
                                                                              <block type="math_arithmetic" id="_W^FbG+99XbN;C)9flkC" inline="false">
                                                                                <field name="OP">ADD</field>
                                                                                <value name="A">
                                                                                  <shadow type="math_number" id="i`amE+Qlg!q#PQ9.Ou5m">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="$G5nXRaCPQ.)fon-Blv4">
                                                                                    <field name="VAR" id="?PJ3vD@jX_t^7fwX$LTS">Auflage</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="``jUV)3h-Jjr}/4xLOf@" inline="false">
                                                                                    <field name="OP">MINUS</field>
                                                                                    <value name="A">
                                                                                      <shadow type="math_number" id="ilJbz[T`ev;!^!-*v-DU">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="get_value" id="FdzRR+%j-~/YuUAgX#zi">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id=",%BI;$Cse].dANLaGbqd">
                                                                                        <field name="NUM">0</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ELSE">
                                                                              <block type="math_arithmetic" id="LAPA:Eva6/@8Q@quc:9m" inline="false">
                                                                                <field name="OP">MINUS</field>
                                                                                <value name="A">
                                                                                  <shadow type="math_number" id="n(H#L?qhB]A=-nb+C}Fs">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="ni3`DWX8DXx(G@{pTLY*" inline="false">
                                                                                    <field name="OP">ADD</field>
                                                                                    <value name="A">
                                                                                      <shadow type="math_number" id="i`amE+Qlg!q#PQ9.Ou5m">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="math_arithmetic" id="#T==IG7Ljw+pQPaW3)ri">
                                                                                        <field name="OP">MULTIPLY</field>
                                                                                        <value name="A">
                                                                                          <shadow type="math_number" id="kA6:(`6`|.-0!Q|o.1+V">
                                                                                            <field name="NUM">1</field>
                                                                                          </shadow>
                                                                                          <block type="variables_get" id="W{I4_-M@1]:qv3h[BBOz">
                                                                                            <field name="VAR" id="c~n1hj_hfoevi-Eog;(m">i</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <shadow type="math_number" id="`eg{]G=6L/E(`u]U,Wg:">
                                                                                            <field name="NUM">1</field>
                                                                                          </shadow>
                                                                                          <block type="get_value" id="Ca[PhJy5ke!^#[8in^?u">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Menge_Kiste</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="p3@_|neWx9Y2*nbb|ceA">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="get_value" id="YrMVy`X0p.RZ51UR5*V5">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">0_userdata.0.Etiketten_Nummerrierung.ab_nummer</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="v7@J3]Q}lWE}gIM!Bb3g">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD12">
                                                                          <block type="text" id="ADV[I{9O-?7n_WrrK?/%">
                                                                            <field name="TEXT">&lt;/center&gt;</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD14">
                                                                          <block type="text" id="5w~J^+*/`*?9*3cXa0);">
                                                                            <field name="TEXT">&lt;div class="footer"&gt;www.wilke-family.com&lt;/div&gt;</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD15">
                                                                          <block type="text" id="T~aBR6}Q.SqAQX=kW1C-">
                                                                            <field name="TEXT">&lt;div class="page-break"&gt;&lt;/div&gt;</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="update" id="qkbmC%1tfy0Qjy3j~dpF">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">0_userdata.0.Etiketten_Nummerrierung.Aufstellung_html</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="text_join" id="9pinC?RRXQXU6Aw{rGM;">
                                                                <mutation items="3"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="text" id="LMHzR_P6#Hd2m0$~Q%Du">
                                                                    <field name="TEXT">&lt;table&gt;</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="variables_get" id="yAR$P*1IqHt93fHmhA|i">
                                                                    <field name="VAR" id="OexA^[5UmI0$r~;H^NN`">html_vorschau</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD2">
                                                                  <block type="text" id="|-Bk3--61%dCwKwX5v+X">
                                                                    <field name="TEXT">&lt;/table&gt;</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="exec" id="t$6XxW#SG#kl~QH::L2#" disabled="true">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                <field name="WITH_STATEMENT">FALSE</field>
                                                                <field name="LOG"></field>
                                                                <value name="COMMAND">
                                                                  <shadow type="text" id="T}`mA#z~l$|ZRbu@bx|t">
                                                                    <field name="TEXT">mkdir html</field>
                                                                  </shadow>
                                                                </value>
                                                                <next>
                                                                  <block type="timeouts_wait" id="V1NJ7BN=r]):~a,|sKc?">
                                                                    <field name="DELAY">500</field>
                                                                    <field name="UNIT">ms</field>
                                                                    <next>
                                                                      <block type="exec" id="KOuKx?FCQU:Ug)OBAO~w" disabled="true">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                        <field name="WITH_STATEMENT">FALSE</field>
                                                                        <field name="LOG"></field>
                                                                        <value name="COMMAND">
                                                                          <shadow type="text" id="uf~~cgN[.(.1M]xcvTu8">
                                                                            <field name="TEXT">text</field>
                                                                          </shadow>
                                                                          <block type="text_join" id="71T#8=tK.S24aHPUfe}F">
                                                                            <mutation items="4"></mutation>
                                                                            <value name="ADD0">
                                                                              <block type="text" id="aayHJ)UzQvHPtr/dZ?mc">
                                                                                <field name="TEXT">cd html &amp;&amp; echo '</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD1">
                                                                              <block type="text" id="P[djPz3H3g|^L?9)=DK@">
                                                                                <field name="TEXT">&lt;style&gt;     @page {         size: 89mm 37mm;         margin: 1mm;     }      body {         font-family: Arial, sans-serif;         font-size: 16.5px;     }      .page-break {         page-break-after: always; /* Erzwingt einen Seitenumbruch nach dem Element */     }      .footer {         position: fixed; /* Fixiert das Element auf der Seite */         bottom: 1mm; /* Abstand vom unteren Rand */         right: 2mm; /* Abstand vom rechten Rand */         font-family: Arial, sans-serif; /* Schriftart Arial */         font-size: 8px; /* Schriftgröße 8px */     } &lt;/style&gt;</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD2">
                                                                              <block type="variables_get" id="/yHW6k){L}=95k=2@e9s">
                                                                                <field name="VAR" id="ci.zX8,sgK[L[xxWc.~~">html</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD3">
                                                                              <block type="text" id="F=t,4]aK3R4_9^Vmsye;">
                                                                                <field name="TEXT">' &gt; html.html</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="timeouts_wait" id="0Zxd8R[M|OT7HOzgwbiz">
                                                                            <field name="DELAY">500</field>
                                                                            <field name="UNIT">ms</field>
                                                                            <next>
                                                                              <block type="exec" id="BwlhyCgG$q[DKeuVJ2z7" disabled="true">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                                                <field name="WITH_STATEMENT">FALSE</field>
                                                                                <field name="LOG"></field>
                                                                                <value name="COMMAND">
                                                                                  <shadow type="text" id="DP(Fe#n5WCIygq{y[;sP">
                                                                                    <field name="TEXT">cd html &amp;&amp; weasyprint -p html.html postversand.pdf</field>
                                                                                  </shadow>
                                                                                  <block type="text_join" id="L-FKJ!bGGAy/Ch_[o%c_">
                                                                                    <mutation items="3"></mutation>
                                                                                    <value name="ADD0">
                                                                                      <block type="text" id="{%Y=3Fu|[%xP[zy!wBq9">
                                                                                        <field name="TEXT">cd html &amp;&amp; weasyprint -p html.html etiketten</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD2">
                                                                                      <block type="text" id="NO**OV%~*kxD~fq_|:4~">
                                                                                        <field name="TEXT">.pdf</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="update" id="Owr2Eg(v#K4$o`;1[u|z">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">0_userdata.0.Etiketten_Nummerrierung.etiketten_generieren</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id="9to)d8MQC4~f0^qbd.CR">
                                                                                        <field name="BOOL">FALSE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </xml>
                

                Edit
                Er rechnet auch sehr oft den zweiten Wert falsch.
                Anstatt 1. 100-150 steht da dann 1. 100-2000
                Screenshot_20241024_221314_Chrome.jpg
                Da rechnet er immer das Menge_Kiste/zu mal 10.
                Eine 10 gibt's aber nirgends....

                CodierknechtC Online
                CodierknechtC Online
                Codierknecht
                Developer Most Active
                schrieb am zuletzt editiert von
                #7

                @david-g
                Bist Du sicher dass anzahl_etiketten bei jedem Durchgang korrekt berechnet wird?

                "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                HmIP|ZigBee|Tasmota|Unifi
                Zabbix Certified Specialist
                Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                David G.D 1 Antwort Letzte Antwort
                0
                • CodierknechtC Codierknecht

                  @david-g
                  Bist Du sicher dass anzahl_etiketten bei jedem Durchgang korrekt berechnet wird?

                  David G.D Online
                  David G.D Online
                  David G.
                  schrieb am zuletzt editiert von David G.
                  #8

                  @codierknecht

                  Da hatte ich in der Tat noch meinem Debug.
                  Weil ich da ja kein einziges Mal mit rechne....

                  Aber der Wert verändert sich wirklich nach jedem Ausführen vom Script.

                  Aber warum?

                  Hab im Script jetzt ALLES was nicht mit Vorschau html zu tun hat deaktiviert und zusammengefaltet.

                  Das heißt hier sehr ihr ALLES was aktiv ist.

                  Anzahl_Etiketten wir am Anfang einmalig berechnet.
                  Screenshot_20241024_222043_Chrome.jpg

                  Zeigt eure Lovelace-Visualisierung klick
                  (Auch ideal um sich Anregungen zu holen)

                  Meine Tabellen für eure Visualisierung klick

                  paul53P 1 Antwort Letzte Antwort
                  0
                  • David G.D David G.

                    @codierknecht

                    Da hatte ich in der Tat noch meinem Debug.
                    Weil ich da ja kein einziges Mal mit rechne....

                    Aber der Wert verändert sich wirklich nach jedem Ausführen vom Script.

                    Aber warum?

                    Hab im Script jetzt ALLES was nicht mit Vorschau html zu tun hat deaktiviert und zusammengefaltet.

                    Das heißt hier sehr ihr ALLES was aktiv ist.

                    Anzahl_Etiketten wir am Anfang einmalig berechnet.
                    Screenshot_20241024_222043_Chrome.jpg

                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von
                    #9

                    @david-g sagte: Anzahl_Etiketten wir am Anfang einmalig berechnet.

                    Nein, sie wird am Anfang jedesmal erhöht.

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    David G.D 1 Antwort Letzte Antwort
                    0
                    • paul53P paul53

                      @david-g sagte: Anzahl_Etiketten wir am Anfang einmalig berechnet.

                      Nein, sie wird am Anfang jedesmal erhöht.

                      David G.D Online
                      David G.D Online
                      David G.
                      schrieb am zuletzt editiert von David G.
                      #10

                      @paul53

                      Paul, du hast recht.....
                      Das war es.
                      Ich könnt mich grad im meinen Allerwertesten beißen 🤬

                      Siehst du zufällig auch warum er vermeidlich "falsch" rechnet?
                      Hatte ich im Beitrag 6 erwähnt.

                      EDIT
                      Jetzt rechnet er korrekt.
                      Beim Setzen der Variablen konvertiere ich na Zahl. Komisch, die DPs sind als Number definiert.

                      EDIT 2

                      P. S.
                      Das sind die generierenen PDF-Etiketten
                      etiketten_final.pdf

                      Mit weasyprint kann man schon coole Sachen machen.
                      Ich liebe den offenen iobroker. Mit HA wäre das nicht so easy (abgesehen von meinem doofen Fehler).

                      Zeigt eure Lovelace-Visualisierung klick
                      (Auch ideal um sich Anregungen zu holen)

                      Meine Tabellen für eure Visualisierung klick

                      1 Antwort Letzte Antwort
                      0
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      818

                      Online

                      32.5k

                      Benutzer

                      81.8k

                      Themen

                      1.3m

                      Beiträge
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Anmelden

                      • Du hast noch kein Konto? Registrieren

                      • Anmelden oder registrieren, um zu suchen
                      • Erster Beitrag
                        Letzter Beitrag
                      0
                      • Home
                      • Aktuell
                      • Tags
                      • Ungelesen 0
                      • Kategorien
                      • Unreplied
                      • Beliebt
                      • GitHub
                      • Docu
                      • Hilfe