Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda