Solved
Stop the loop if a value is found
For a list of integers, I need to check the desired value by calling a service. I would like to stop calling the service, only I get the desired output. Any suggestions, please.
For a list of integers, I need to check the desired value by calling a service. I would like to stop calling the service, only I get the desired output. Any suggestions, please.
This could potentially be one of the few times that it's helpful to call an expression rule recursively.
Pattern: rule!RULE_myFunction(list of integers)
if(
(list index 1 meets condition),
[Return Value],
rule!RULE_myFunction(ldrop(list of integers, 1)) /* pass in the same array, but with the first element removed */
)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.