Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

361
Vistas
Can you have a text variable shown within a text node?

I am trying to a text node, where to states the user's name they chose at the start through a textbox to be displayed within a text node and wondering if it is possible. This is what I've done so far and it isn't working. Also, a unique piece of dialogue comes up if named Andrew.

      //if statement to determine the users name and save it
      if (nextTextNodeId == 60) {
      var InputName = document.getElementById('name').value
      name = InputName
      setState: { InputName: name }
      if (name == "Andrew") {
          ToggleInputOff()
          state = Object.assign(state, option.setState)
          showTextNode(4)
          return;
      }
      else if (name == "") {
          state = Object.assign(state, option.setState)
          showTextNode(3)
          return; 
      }
      else {
          ToggleInputOff()
          state = Object.assign(state, option.setState)
          showTextNode(5)
          return;
      }
      return ToggleInputOff()
      }

      //Example
        {
            id: 5,
            text: "Welcome " + name + " let us start the day!",
            options: [
                {
                    text: "Let's go",
                    nextText: 6
                }

            ]
        },

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda