Skip to content
TheChatArchiveThe Chat Archive
o1-preview-2024-09-12· OpenAIAi2 WildChat-4.8M (AI2)

não muda muito o codigo: let strutura; if (document.getElementById("tipotelhado").value…

  1. User

    não muda muito o codigo: let strutura; if (document.getElementById("tipotelhado").value == "Telha Colonial (Cerâmica)") { strutura = 1; } else if (document.getElementById("tipotelhado").value == "Telha Trapezoidal (Zinco)") { strutura = 2; } else if (document.getElementById("tipotelhado").value == "Fibrocimento (Madeira)") { strutura = 3; } else if (document.getElementById("tipotelhado").value == "Sem Suporte (Já Tenho)") { strutura = 4; } else if (document.getElementById("tipotelhado").value == "Fibrocimento (Metal)") { strutura = 5; } else if (document.getElementById("tipotelhado").value == "Telha Trapezoidal") { strutura = 6; } else if (document.getElementById("tipotelhado").value == "Laje") { strutura = 7; } else if (document.getElementById("tipotelhado").value == "Solo") { strutura = 8; }

    let estrutura;
    if ($kit.Estrutura.strutura.Info == 0) {
        estrutura = "";
    } else if ($kit.Estrutura.strutura.Info == 1) {
        estrutura = "Perfil de Alumínio 2.4m";
    } else if ($kit.Estrutura.strutura.Info == 2) {
        estrutura = "Kit Longarinas 4800MM - Estrutura de solo ROMAGNOLE";
    } else if ($kit.Estrutura.strutura.Info == 3) {
        estrutura = "Mini Trilho - 100mm (A) x 300mm (C) - Alto (1un)";
    }
    
  2. Assistant

    Claro! Poderia, por favor, esclarecer em que posso ajudar com o código que você forneceu? Se você está enfrentando algum problema ou precisa de alguma orientação específica, ficarei feliz em ajudar.