Configuring Conditional Workflow for Leave Application in ERPNext

Hello everyone

In ERPNext, I already have a workflow set up for the Leave Application. I want to add a condition that does the following:

  • If the leave is for 1 day, the workflow should proceed normally.
  • If the leave is for more than 3 days, the workflow should be sent to another employee for approval.
    So is there is a way to achieve that…?
    here is my current workflow:

you can add condition like this in all the workflow Transactions.

doc.total_leave_days > 3

@ejaaz but where exactly do I have to put this condition…?


in condition field