Writing counter logic in RPAS rules
Hi,
I am trying to figure out the logic to implement a counter logic.
MeasureA(csku_mkrt) is a user entered value and need to be compared with MeasureB(day_csku_mkrt) and need to pick up the days data which matches the condition.
So logic will be like below:
MeasureC(day_csku_mkrt) = if (current > today &&MeasureA - MeasureB >=0, true,false)
In this case it will mark days true where MeasureAis greater than MeasureB value. How to handle cases when the MeasureA value is less than MeasureB value and logic should stop at the day where it MeasureA first time goes -ve.