Hey, @James_Kovacs
I’d like to thank you for taking the time to reply to me. Apparently there are sometimes string values for Value and other times there are integer values. I did however try your solution and it does not work, so I assume something else is wrong with my code.
I’ll be investigating a bit more before troubling anyone again, but I will definitely come back and give an update once I either give up investigating and seek more help, or figure out the solution to my issue for future reference.
Regardless, thank you very much!