Where do I register helper functions?

I need to register a couple of helper functions for my handlebars transformation script. Simple stuff like:

Handlebars.registerHelper('toLowerCase', function(str) {
  return str.toLowerCase();
});

But where do I put that snippet of code?

Thanks!

There isn’t currently a way to make your own handlebar helpers, though we do have the idea in our backlog. For this use case, you can just use this lowercase function: https://docs.celigo.com/hc/en-us/articles/360039326071-Handlebars-helper-reference#h_01JYPTYDAVKHVS04J1WQ4QWMEV.

Thank you, Tyler.

That lowercase should work great.

The big thing I was looking for was a switch statement. But you have if ... elseif ... else which should serve well.

Yes, that would work well for what you’re needing. @priyankakoundal is also working on bringing support for 40+ new handlebars, and you can find some of them to vote for in Product Feedback on this post: https://connective.celigo.com/t/which-of-these-new-handlebars-helpers-would-help-you-the-most/4587.