SnatchBot Support

Welcome to the SnatchBot Support. You'll find comprehensive guides and documentation to help you start working with SnatchBot as quickly as possible, as well as support if you get stuck. Let's jump right in!

The community forum is not a helpdesk
Let’s put this in the front - the vast majority of people here do not work for SnatchBot.

Get Started    SNATCHBOT API
Ask A Question

Questions

2

Multiple If statement reply

Hello, so in a reply of my bot I have multiple If statements based on the replies I gave the bot before. The code appears like this (isn't a better way to write it?): OK, then the total cost is [IF([responseTo interaction=1180608 fallback=no]=I'm 21){[IF([responseTo interaction=1180652 fallback=no]=35 Lessons Package){ € 741,10 for a year subscription of 35 lessons of 30 minutes per lesson including 21% btw. You can pay it in one go or in 3 instalments. The last option has an administration fee of €7,50.}]}] [IF([responseTo interaction=1180608 fallback=no]=I'm older than 21){[IF([responseTo interaction=1180652 fallback=no]=35 Lessons Package){ € 741,10 for a year subscription of 35 lessons of 30 minutes per lesson including 21% btw. You can pay it in one go or in 3 instalments. The last option has an administration fee of €7,50.}]}] [IF([responseTo interaction=1180608 fallback=no]=I'm younger than 21){[IF([responseTo interaction=1180652 fallback=no]=35 Lessons Package){ € 612,50 for a year subscription of 35 lessons of 30 minutes per lesson. You can pay it in one go or in 3 instalments. The last option has an administration fee of €7,50.}]}] The reply I got contains a lot of "}]" like this, that come when the other conditions are not met: OK, then the total cost is € 741,10 for a year subscription of 35 lessons of 30 minutes per lesson including 21% btw. You can pay it in one go or in 3 instalments. The last option has an administration fee of €7,50. }] }] How can I solve this problem? Thanks Luca

Posted by Luca Ridolfo 3 days ago