Jump to content

Manipulate Conditions


Go to solution Solved by Thorsten Vogt,

Recommended Posts

Posted

Hello,

I'm trying to create a dynamic condition based on the preexisting condition, Water Batch. 

How do I create another condition that:

if Water Batch condition is greater than 14hrs, start the new condition after it and last 41hours.

if Water Batch condition is lower than 14hrs, start the new condition immediate after Water Batch ends and last 41 hours. 

Struggling with Syntax and doing "if's" 🧐

 

cheersimage.png.36d210016a2ab24fadd226f04e7c372e.png

Posted

Hello,
 

you may use the keep() function to filter for the duration and create the capsules:

$condition.keep('Duration', isgreaterthan(10h)).afterend(3h)

In the following example I am creating capsules of 1h length if the duration is less than 10 hours and capsules 3 hours of length if the duration is greater than 10 hours:

image.png.606f7b3845d671eda77f0cd478e716d4.png

Does this answer your question?

Regards,

Thorsten

Posted (edited)

Hi Torsten,

many thanks for your help! 

Just a slightly correction:

if Water Batch condition is greater than 14hrs, start the new condition after 3 hours of the Water Batch Started and last 41 hours. (it might have some issues with the condition that has not been finished yet).

if Water Batch condition is lower than 14hrs, start the new condition immediate after Water Batch ends and last 41 hours. (This one is ok)!

 

Thanks for you help!

 

Edited by brenocamp

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...