{#if !isBranchAll}
If defined, at the end of the step, the predicate expression will be evaluated to decide if the flow should stop early or break if inside a for/while loop. { if (isStopAfterIfEnabled && flowModule.stop_after_if) { flowModule.stop_after_if = undefined } else { flowModule.stop_after_if = { expr: 'result == undefined', skip_if_stopped: false } } }} options={{ right: isLoop ? 'Break loop' : parentLoopId ? 'Break parent loop module' : 'Stop flow' + ' if condition met' }} />
{#if flowModule.stop_after_if} {@const earlyStopResult = isLoop ? Array.isArray(result) && result.length > 0 ? result[result.length - 1] : result === NEVER_TESTED_THIS_FAR ? result : undefined : result} {#if !parentLoopId && !isLoop} {/if} Stop condition expression
{ editor?.insertAtCursor(detail) editor?.focus() }} >
{:else} {#if !parentLoopId && !isLoop} {/if} Stop condition expression