How to put conditions in send email action

Hi team i am passing certain variables in my email like
ARIBA or Fieldglass: ${toggle}

Preparer: ${preparer}

Preparer Email Address: ${preparerEmailAddress}

Contractor Name: ${contractorName}

Company Code: ${companyCode}

Mirror ID: ${mirrorId}

now i want if toggle value is true then it should show A if false then B

Hi @Deepanshu07 , yes, you could use the VTL code something like this:
#if($toggle)A#elseB#end

1 Like