Back to All

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