SnatchBot Support

Welcome to 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!

Please note that the community forum is not a helpdesk.
ProPlan users, remember you can raise a ticket from your dashboard.

Get Started    SNATCHBOT API

Questions

Ask A Question
4
ANSWERED

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 about a year ago