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

125
Vistas
If statments in Js

I need a litle bit of help. So I have a rename functionality, I have many if statements, the one I cant bear to begin is, I want to create an if statement when name is
is not changed, I will add an alert. Like you see from the example below for Name blank. I hope you understood me. Edit: this is if statement is for the other funcionality of rename File

   if(!fileName.replace(/\s+/, "") .length > 0){
            Alert.alert('Error', "Name can't be blank");
            return;
        } 
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

just store the previous file name and compare it with the new file name

    if (previousFileName == fileName){
        Alert.alert('Error', "Name can't be previous name");
        return;
    }
about 4 years ago · Juan Pablo Isaza Denunciar
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