my code works but its a bit messy so I tried collapsing it into a macro, function etc, but I get errors. it makes no sense. As soon as I expand it again it works.
nevermind, the code did work, my duplicated collapsed nodes were faulty because it was trying to access something that wasnt there yet where as my original collapsed node was already setup correctly. Im a newbie programmer and I keep running into simple problems that takes me like an hour to figure out. its annoying
Welcome to programming life and good that you found out why Its very often even for non-newbie spent lot of time figuring why it isn’t working, so no worries
For me I only use collapse node to hide things that could never be function, and they involve too many one-time calculation and make the graph complex, like hit result data or fetching values. Copy collapsed graph requires special attention, like to update variable, ensure events aren’t duplicated, etc