Boolean to text?

Status: Closed · Asked by Marek Jankowski on · 0 views

marekj — Question ·

When a customer in my cart checks that they want to receive the newsletter, a "true" value appears in Pabbly. I'd like to change it to the text "optIn" because that's what my email system requires to add the customer to the right list.

I know I can do this through Router by creating 2 paths for adding to the list. But maybe there's a simpler way to convert the "true" value to "optIn" text? I tried using Text Replace, but it didn't work.

Preeti Paryani — Reply ·

Hello @marekj,

You can acheive this using Lookup Table, refer to the attached image for better understanding.

marekj — Reply ·

That's what I needed! Thank you @Preeti Paryani ?

Preeti Paryani — Reply ·

Hello @marekj,

Thanks for the update. Glad I could have helped.

Back to all forum threads · Log in to reply