Hi all,
(Edit at 2026-04-03 22:00 CST - Whole post was reworded because, as pointed out, it didn’t much sense what I was trying to ask. Being sleep deprived and taking flu meds didn’t helped at all - lesson learned)
Well, as title says, is it possible to validate the current value of a variable to determine what the script will do next?
Long story short: Using HTML scrapping (as no API, nor JSON are available) current version of script can get Artist name, and Release Type (e.g., Split, Full-Length, Single, etc).
However, due to how albums with multiple artist are displayed, to get the proper artist for each track Artist’s value needs to be changed depending if current album has an specific Release Type (Split) and leave it alone if it is not. Basically something like this:
IF RELEASE_TYPE is “Split” THEN
ARTIST = “New Value”
END IF
As per current HTML design, Artist value will always be found before the Release Type.
So, part of my initial idea was to validate RELEASE_TYPE’s value to determine if Artist’s value needs to be updated or not - but it so far it hasn’t been possible for me to achieve that.
Worth to mention that most of my attempts have gravitated around this potential solution but either there’s something that I am missing/doing wrong, or something else is going on, because I am not able to make it work as expected.
Any ideas how to validate a variable’s value? Or is something that is not possible?
Nonetheless, thanks in advance.
Regards.