In this case this would be a good solution, but it gets really big when you have to check 10 options for example! The switch statement is also not available in Python for example.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good solution for 'If statements' issue!
What about this way?..
In this case this would be a good solution, but it gets really big when you have to check 10 options for example! The switch statement is also not available in Python for example.