Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Letztes Zeichen entfernen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Letztes Zeichen entfernen

    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      UncleB @DJMarc75 last edited by

      @djmarc75 said in Letztes Zeichen entfernen:

      @homoran sagte in Letztes Zeichen entfernen:

      edit: @DJMarc75 hat editiert,

      sorry, ja hab das Bild getauscht 😉

      @uncleb sagte in Letztes Zeichen entfernen:

      wurde paar mal editiert

      ein mal 😉

      @uncleb sagte in Letztes Zeichen entfernen:

      mit -2 habe ich das Komma immer noch am Ende

      nicht -2 sondern nur 2

      Mit 2 habe ich keine Anzeige mehr, da läuft nur noch der Text "Türen oder Fenster geöffnet.."

      @Homoran In der Variable steht "Büro," nur das letzte Komma soll weg

      Homoran DJMarc75 3 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @UncleB last edited by

        @uncleb sagte in Letztes Zeichen entfernen:

        In der Variable steht "Büro," nur das letzte Komma soll weg

        bitte mit allen Zeichen angeben.
        Am besten kopieren und in code-tags posten

        1 Reply Last reply Reply Quote 1
        • Homoran
          Homoran Global Moderator Administrators @UncleB last edited by

          @uncleb wenn da noch ein Leerzeichen hinter dem Komma uast muss es natürlich 3 von hinten sein

          Screenshot_20240129-213402_Firefox.jpg

          1 Reply Last reply Reply Quote 1
          • DJMarc75
            DJMarc75 @UncleB last edited by

            @uncleb

            Screenshot 2024-01-29 213434.png

            Homoran 1 Reply Last reply Reply Quote 1
            • Homoran
              Homoran Global Moderator Administrators @DJMarc75 last edited by

              @djmarc75 hier

              @uncleb sagte in Letztes Zeichen entfernen:

              Also Inhalt:
              21:14:53.497 info javascript.0 (26096) script.js.common.Awtrix.offene_fenster: ['Büro, ']

              ist noch ein Leerzeichen nach dem Komma

              DJMarc75 1 Reply Last reply Reply Quote 1
              • DJMarc75
                DJMarc75 @Homoran last edited by

                @homoran sagte in Letztes Zeichen entfernen:

                ist noch ein Leerzeichen nach dem Komma

                ja, das ganze Skript hat eh noch Luft nach oben 😉

                @UncleB

                Screenshot 2024-01-29 214958.png

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <variables>
                   <variable id="7ql(e-@nkSumdsd*nCD5">offen</variable>
                 </variables>
                 <block type="variables_set" id="/O?e^aB7l)EHFi}9@Y}~" x="63" y="938">
                   <field name="VAR" id="7ql(e-@nkSumdsd*nCD5">offen</field>
                   <value name="VALUE">
                     <block type="lists_create_with" id="5X}AXV]kx,(@dI!kiB$=">
                       <mutation items="0"></mutation>
                     </block>
                   </value>
                   <next>
                     <block type="lists_setIndex" id="1dWxpk~w6y6G|roZYf[S">
                       <mutation at="false"></mutation>
                       <field name="MODE">INSERT</field>
                       <field name="WHERE">LAST</field>
                       <value name="LIST">
                         <block type="variables_get" id="mHx`S0uk2{g=$XgeT;#E">
                           <field name="VAR" id="7ql(e-@nkSumdsd*nCD5">offen</field>
                         </block>
                       </value>
                       <value name="TO">
                         <block type="text" id="-O^(Zbd8lmPXd0=:D~QP">
                           <field name="TEXT"> Bad</field>
                         </block>
                       </value>
                       <next>
                         <block type="lists_setIndex" id="z,cp7m1yv}=Z{+x`m(G^">
                           <mutation at="false"></mutation>
                           <field name="MODE">INSERT</field>
                           <field name="WHERE">LAST</field>
                           <value name="LIST">
                             <block type="variables_get" id="xgHS=LCe;3B02Y]dy^l!">
                               <field name="VAR" id="7ql(e-@nkSumdsd*nCD5">offen</field>
                             </block>
                           </value>
                           <value name="TO">
                             <block type="text" id="*aq/pktad=`8:qRa.7tA">
                               <field name="TEXT"> Büro</field>
                             </block>
                           </value>
                           <next>
                             <block type="lists_setIndex" id="W[3Sb81]8JKYIbKh4DyZ">
                               <mutation at="false"></mutation>
                               <field name="MODE">INSERT</field>
                               <field name="WHERE">LAST</field>
                               <value name="LIST">
                                 <block type="variables_get" id="=K0?F44{7_DA5d!p`xk+">
                                   <field name="VAR" id="7ql(e-@nkSumdsd*nCD5">offen</field>
                                 </block>
                               </value>
                               <value name="TO">
                                 <block type="text" id="IL4XW+jxyuI}cDrbkhGO">
                                   <field name="TEXT"> Küche</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="debug" id="z4D#BJWzZTv%95jp1ybo">
                                   <field name="Severity">warn</field>
                                   <value name="TEXT">
                                     <shadow type="text" id="*_N7Fw1z1QPPOZ0!w(bX">
                                       <field name="TEXT">test</field>
                                     </shadow>
                                     <block type="text_join" id="pG{%VvC7cLE`wFK+WHf^">
                                       <mutation items="3"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="Avhb2ri6%$.oXq#1C~i_">
                                           <field name="TEXT">Die Fenster in den Zimmern</field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="lists_getSublist" id="Xlw1x3tRa$`U8xv_}4!Y">
                                           <mutation at1="false" at2="false"></mutation>
                                           <field name="WHERE1">FIRST</field>
                                           <field name="WHERE2">LAST</field>
                                           <value name="LIST">
                                             <block type="variables_get" id=",JY:9j!h*M*n,3kc(Y_O">
                                               <field name="VAR" id="7ql(e-@nkSumdsd*nCD5">offen</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="ADD2">
                                         <block type="text" id="!lGT,VE4w~Bm`P4yRJeL">
                                           <field name="TEXT"> sind offen.</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
                </xml>
                

                U 1 Reply Last reply Reply Quote 1
                • U
                  UncleB @DJMarc75 last edited by

                  @djmarc75 so läuft es zwar auch, aber die Räume sind halt nicht mit Komma getrennt, um das gings mir ja eigentlich 🙂

                  DJMarc75 Homoran 2 Replies Last reply Reply Quote 0
                  • DJMarc75
                    DJMarc75 @UncleB last edited by

                    @uncleb sagte in Letztes Zeichen entfernen:

                    aber die Räume sind halt nicht mit Komma getrennt

                    natürlich sind sie das, siehe mein LOG im Screenshot 😉

                    U 1 Reply Last reply Reply Quote 1
                    • Homoran
                      Homoran Global Moderator Administrators @UncleB last edited by

                      @uncleb sagte in Letztes Zeichen entfernen:

                      @djmarc75 so läuft es zwar auch, aber die Räume sind halt nicht mit Komma getrennt, um das gings mir ja eigentlich 🙂

                      dann antworte doch einfach mal auf due gestellte Frage wie der Inhaltvder Variable wirklich und exakt aussieht.
                      Dann wären wir längst fertig

                      1 Reply Last reply Reply Quote 1
                      • U
                        UncleB @DJMarc75 last edited by

                        @djmarc75 du hast recht, es läuft 🙂
                        Ist für das Komme die Teilliste zuständig?

                        @Homoran jetzt läufts ja 🙂
                        Sorry das sind so ziemlich meine ersten Blöcke 🙂

                        DJMarc75 1 Reply Last reply Reply Quote 0
                        • DJMarc75
                          DJMarc75 @UncleB last edited by

                          @uncleb sagte in Letztes Zeichen entfernen:

                          Ist für das Komme die Teilliste zuständig?

                          wenn man etwas zu einer Liste hinzufügt werden alle Werte in der Liste mit einem Komma getrennt, da braucht man nicht noch extra ein Komma einfügen 😉

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          884
                          Online

                          31.6k
                          Users

                          79.6k
                          Topics

                          1.3m
                          Posts

                          5
                          22
                          610
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo