Simple yet kinda strange question: i'm making a notes system, i'm

programming the get function, but depending on the msg type i have to use a different function from the bot. How can i implement this efficiently? I think doing 6 if statements isn't that great... any other ideas?

4 ответов

11 просмотров

if statement is the good solution in this case. I would recommend going to switch instead, but it is just another form of if

Xito137- Автор вопроса

Похожие вопросы

Карта сайта