If month is less than Or Equal to current month

Dear Team,
I have workflow as shown in fig.
image

I have to apply a condition, if Month is Less than Or Equal to current month.
For Ex, if I run the bot now it has to run for Jan, Feb month as current month is feb.
If I run the Bot in Mar then it should run for Jan, Feb, Mar.

Thanks,
Amol

Hi @Amol_Golhar

You can try the below way:

Assign: currentMonth = Now.Month

For Each: monthIndex in Enumerable.Range(1, currentMonth)
  If: monthIndex <= currentMonth
    Then:
      Your Bot Execution
  End If

Regards

@Amol_Golhar

Assign: currentMonth = DateTime.Now.Month

if:currentMonth <= targetMonth
  Then:
    // Add actions to execute if the condition is true
  Else:
   put a break

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.