What I’ve done here (which looks terrible but also works) is that I made an array from my struct variables manually, then checked each for their value in a For Loop, and if the value was false, then set its index to an Integer variable.
After completion of For Loop, I used a Switch with that int variable to set the desired struct member to true and save the struct.
My question is that I want to know if there’s another way to make my life easier while using structs or not?
This was an example, in this case, my struct contained just booleans. But I faced this problem with various type of variables so I couldnt make an array from. And the annoying part of my situation was the Switch node, and @3dRaven 's answer seems to be the solution
References are not important in my case, cause i just want to know if there’s still any unlocked songs or not, so key/value array is my best choice I guess.
I not yet tried the solutions as I was busy with other parts, I’ll try tomorrow and post the results.