Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly: setze attribut [name] in objekt

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Blockly: setze attribut [name] in objekt

    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      150d last edited by

      Hallo,

      ich möchte in Blockly eine Anzahl von Attributen in ein JSON-Objekt schreiben. Dafür gibt es ja den Block

      f07df118-ec03-4dec-8c8b-a8a05f11b23c-grafik.png

      Was aber, wenn ich den Namen des Attributs "attribute1" noch nicht kenne? Nur als Beispiel, wie könnte ich etwa innerhalb einer for-Schleife die Attribute namens "1" bis "5" hinzufügen?

      Ich müsste also statt dem Text "attribute1" einfach eine Variable einhängen können. Das geht aber nicht.

      Wie könnte man soetwas lösen?

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

      Support us

      ioBroker
      Community Adapters
      Donate

      692
      Online

      31.9k
      Users

      80.1k
      Topics

      1.3m
      Posts

      1
      1
      135
      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