Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If statement -> Switch ? #39

Closed
redahaq opened this issue Nov 29, 2019 · 1 comment
Closed

If statement -> Switch ? #39

redahaq opened this issue Nov 29, 2019 · 1 comment
Labels
compliment question Further information is requested suggestion

Comments

@redahaq
Copy link

redahaq commented Nov 29, 2019

I really love all your logic and how you've created different messages according to night/ day and using the weather code groups. with 'startsWith'. Very clever!

Could you perhaps change your logic of if-else statements to a switch statement with cases and breaks?

@redahaq redahaq added question Further information is requested compliment suggestion labels Nov 29, 2019
@freemvmt
Copy link
Collaborator

Haha thanks Reda this is a nice idea! Always with the excellent memes

@Ayub3 Ayub3 closed this as completed Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compliment question Further information is requested suggestion
Projects
None yet
Development

No branches or pull requests

3 participants