Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!