Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Binding.. Integer funktioniert , Boolean nicht

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Binding.. Integer funktioniert , Boolean nicht

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

      ich hab im Vis ein HTML Schnippsel

      {a:javascript.0.VAR1; a===1 ? 'class="red"' : 'class="green"'}

      tuts super

      wenn javascript.0.VAR1 vom typ Integer ist

      nu hab ich eine Variable, wo javascript.0.VAR2 vom typ boolean ist

      und das tuts zum verrecken nicht

      {a:javascript.0.VAR2; a==true ? 'class="red"' : 'class="green"'}

      wo verrenne ich mich da ? wo ist der Fehler

      Danke, Black

      1 Reply Last reply Reply Quote 0
      • P
        pix last edited by

        Kann ich reproduzieren. Geht bei mir auch nicht.

        Gruß

        Pix

        1 Reply Last reply Reply Quote 0
        • M
          manne01 last edited by

          Guten Tag, habe gerade genau dasselbe Problem - lässt sich da was machen? Was ist eine alternative Lösung? Kann man einen Change Request einkippen?

          1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active last edited by

            {a:javascript.0.VAR2; a==true or a=='true' ? 'class="red"' : 'class="green"'}

            1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 last edited by

              Ja, wie es in der VIS Doku steht wird alles auf Strings umgebaut …

              also "true" oder vllt sogar "1" ... versucht das mal

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

              Support us

              ioBroker
              Community Adapters
              Donate

              605
              Online

              32.0k
              Users

              80.4k
              Topics

              1.3m
              Posts

              5
              5
              1375
              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