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

118
Vistas
Can you find if two columns in a data set are in the same position?

I'm trying to compare two variables and find out if they have the same position to display the second variable, I'm trying to find out the second variable (Artist name) based off of the first input which was the Track Name, based off of the position on the data table.

All the track names are on the same position as the artist who made the song so I want to be able to display that when they input it.

My Code so far to choose the track name based off of a drop down with all 200 songs.

onEvent("fighter1", "change", function( ) {

    var Track = getProperty("fighter1", "text");

    setProperty("songLabel_1", "text", "");

    var ChosenTrack = Track.substring (0,100);

    var TrackName = getColumn("Spotify Charts: Top 200 Artist and Song", "Track");

    for (var i = 0; i < TrackName.length; i++) {
        if (ChosenTrack == TrackName) {   
        }
        setProperty("songLabel_1", "text", ChosenTrack);
    }
});

How would I structure it so that when the Track chosen pulls up its corresponding artist and displays it on a different label?

I'm using Code.org to program this.

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