Loop track until two Int are the same then move onto the next

Hi all, I’m trying to create a randomised piece of music whereby a piece loops until it’s loop count is the same as a variable set upon the piece playing. Once the track has looped said amount of times it moves onto the next piece. I keep running into “connection causes loop” with any method I try. Thanks in advance for any help.

It’s important to note that MetaSounds are not control flow graphs like Blueprints—everything in a MetaSound graph is happening at the same time for each render block.

In order to avoid connection loop errors, you will need to use “delayed get” nodes as a way of sending information (trigger variables in your case) to the next render block.

I recommend checking out the concatenation section toward the bottom of this tutorial: MetaSound Wave Player Node Usage | Tutorial

Here’s another tutorial that has more of a walkthrough explanation of delayed gets under the Trigger “Loop Backs” header: Introduction to MetaSounds | Community tutorial