this.description="Conditionally jump forwards or backwards to the specified Label based on whether the data matches the specified regular expression.";
this.inputType="string";
this.outputType="string";
this.args=[
{
"name":"Match (regex)",
"type":"string",
"value":""
},
{
"name":"Invert match",
"type":"boolean",
"value":false
},
{
"name":"Label name",
"type":"shortString",
"value":""
},
{
"name":"Maximum jumps (if jumping backwards)",
"type":"number",
"value":10
}
];
}
/**
* @param {Object} state - The current state of the recipe.
* @param {number} state.progress - The current position in the recipe.
* @param {Dish} state.dish - The Dish being operated on.
* @param {Operation[]} state.opList - The list of operations in the recipe.
* @param {number} state.numJumps - The number of jumps taken so far.
* @returns {Object} The updated state of the recipe.