Convert boolean (switch component) true to number

Hi how i can convert from boolean (true, false) to 1, 0

im using switch component, but need to save as 1,0 in my database not true,false. Any advice?

thank you

Hi there,

Thanks for reaching out to us!

There are quite a few options here, but I think your best bet is to use a variable here and use {{variable1.value}} for your query.