Here is a simple example on how to use exit_loop_if([!]trigger, label) to set the trigger condition. Note that the example pattern opcode is incomplete, you may need to add your pattern burst before halt.

For the jump_if([!]trigger, label) flow controls opcodes example, you may refer to the article: How to Run Infinite Loop in Digital Pattern Editor.