Skip to content

Loop #19

Answered by ThereforeGames
aniketgore asked this question in Q&A
Loop #19
Nov 12, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @aniketgore,

Good question!

This may have been possible with a complex template, but I just released a new update (v0.8.0) that offers a fairly straightforward solution.

Check it out:

Photo of a woman wearing a [choose _case="<get batch_index>"]red|blue|yellow[/choose] shirt

The _case argument overrides the random nature of [choose] with batch_index - a new, built-in variable that corresponds to your progress in a batch run.

Note: it will automatically clamp the given _case value between 0 and the zero-indexed length of your [choose] list (i.e. between 0 and 2 in the example above), so if you need to loop through the list multiple times, you will have to perform additional processing …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aniketgore
Comment options

Answer selected by ThereforeGames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants