Is it possible to make loop in a workflow behave like a while loop?

  • 4 May 2020
  • 1 reply
  • 42 views

Loops in a workflow as far as I understand steps though items in a list.   I like to use a loop to extract text from a delimited  string until all fields were processed.  Is it be possible to create a loop that would work like a while loop, so it stops when a logical expression is evalued to True?   I also welcome recommendations to do this in a different way.    Thank you. 

 

 


1 reply

Badge +7

Hello  @Chuckman ,


 


You can use the an advanced condition is true rule condition to execute an action if the condition is true, such as send an email if a control contains a specific value. You can also build advanced expressions and control how they are evaluated when using multiple conditions. Here is a full overview: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#How-Tos/AdvancedFilterCondition/HowToUseAdvancedFilterConditions.htm


 


The IF function allows you to evaluate a condition and then do one thing if the condition is true, or a different thing if the condition is false. Commonly referred to as If-Then-Else, your logic inside an expression can be simple to complex, and the result represents whether or not the condition is true. Review full context here: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#k2-workflow-designer/use/ContextBrowser/Functions/IFFunction/IF-Function.htm


 


How To: Configure a simple or complex If-Then-Else expression using the IF Function: https://help.k2.com/onlinehelp/k2cloud/userguide/current/default.htm#How-Tos/UseIFFunction/How-To-If-Function.htm


 


Expression , Function , Advance logical condition in k2 5 workflow: https://community.k2.com/t5/K2-Five/Expression-Function-Advance-logical-condition-in-k2-5-workflow/td-p/103558


 

Reply