3.3: Else and Else if, AND and OR - p5.js Tutorial

Subscribers:
1,750,000
Published on ● Video Link: https://www.youtube.com/watch?v=r2S7j54I68c



Category:
Tutorial
Duration: 16:56
172,420 views
2,399


This video covers the 'else' and 'else if' control structures as well as the logical operators AND (&&) and OR (||). Code: https://thecodingtrain.com/tracks/code-programming-with-p5-js/code/3-conditionals/3-else-if-and-or

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/In-bIB8w

πŸŽ₯ Previous video: https://youtu.be/LO3Awjn_gyU?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
πŸŽ₯ Next video: https://youtu.be/Rk-_syQluvc?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

Timestamps:
0:00 Introduction
0:47 Using else() to Check for Other States
3:39 Using Multiple else if() Statements
7:06 Order of else if() Statements
10:06 AND and OR

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: http://thecodingtrain.com/
πŸ‘Ύ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: https://github.com/CodingTrain
πŸ’¬ Discord: https://discord.gg/hPuGy2g
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: https://standard.tv/codingtrain
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/

πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: https://p5js.org
πŸ”— p5.js Web Editor: https://editor.p5js.org/
πŸ”— Processing: https://processing.org

πŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#basics #boolean #ifstatement #p5js #javascript







Tags:
else
else if
conditionals
boolean
and
or
javascript
p5.js
tutorial
Conditional
p5js
p5.js if
p5.js else if
if and or js
p5.js boolean variables
p5.js if statement
javascript (programming language)
tutorial (media genre)
tutorials
coding
creative coding
p5.js tutorial
programming
p5 js
control flow