Skip to main content

If

Category: Control If block screenshot

Runs the first branch whose condition evaluates to true, with an optional else body when no branch matches. Each entry in branches contains one condition/body pair. elseBody, if present, runs only when none of the branch conditions match.

Inputs

InputRequiredValue KindTypesEnum Values
branchesyesarray
elseBodynoarray

Notes

No additional notes are available yet.

Examples

Export Sequence Markers To SRT

Prompts for the subtitle text source first, then exports active-sequence markers to an `.srt` file while skipping empty resolved text and zero-duration markers.

kind: Recipe · format: persisted-document · validation: Schema only

Topics: markers, subtitles, SRT export, save dialogs, marker comments

Source: recipes/ex-markers-export-active-sequence-to-srt.json

Download JSON

Render Active-Sequence Frames At Equal Distances To Fixed Folder

Exports a small evenly spaced set of `.png` frames across the active sequence to a fixed folder path, so visual timeline sampling can be runtime-validated deterministically.

kind: Pattern · format: runtime-dsl · validation: MCP fixture

Topics: frame export, visual probing, timeline sampling, runtime validation

Source: patterns/ex-sequence-render-active-sequence-frames-equal-distances-fixed-folder.json

Download JSON

Render Frames At Sequence Markers To Fixed Folder

Exports one `.png` frame per active-sequence marker to a fixed folder path, so marker-driven still export can be runtime-validated deterministically.

kind: Pattern · format: runtime-dsl · validation: MCP fixture

Topics: markers, frame export, review stills, runtime validation

Source: patterns/ex-markers-render-active-sequence-frames-fixed-folder.json

Download JSON