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

286
Vistas
activate an if/else statement if functions are activated in the right order (javascript)

I solved this myself by creating a variable that changes in each function. This var is set to a letter in function a() and if it is that letter when I click on function c() then it changes into another letter and so on. Lastly I have a if statement that activates if it is the right last letter.

I have a project where I have several functions and I want another function to activate if the first 4 functions is activated in a particular order. (and then I want several else if statements to get different functions to activate for other orders, but that I can figure out myself)

I don't know how to get javascript acknowledge that a chain of functions are activated in the right order. (if that is even possible)

as an example: I have function a(), function b(), function c() and function d().

if they are activated in order acbd I want function s() to activate. and if they are activated in order bdca I want function f() to activate.

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