Needed to setup simple if else http request

hello needed to setup http request based on if and else
using following code can any one help

import { axios } from "@pipedream/platform"
export default defineComponent({
  async run({steps, $}) {
    if (steps.trigger.event.body.info.to_pincode == '411045' ) {
        
     return await axios($, {
      method: "POST",
      url: ``{{baseUrl}/message/text?`,
      params: {
        key: `keycode`,
        },
      body: {
        id: '919999999999',
        message: 'if'
      }  
        
    })
}  else {
    return await axios($, {
              method: 'POST',

        url: `{{baseUrl}}/message/text?`,
         params: {
        key: `keycode`,
        },
      body: {
        id: '919999999999',
        message: 'else'
      } 
      })    
}
    
  },
})

Hi @drdaga,

For help with specific workflow implementations, I recommend posting your job details to the Hire an expert board:

Hire an expert - Pipedream

Then an expert will reach out and assist you with either walking you through building this flow or build it out right for you.