Please turn JavaScript on to use this site.
Worlds
Minds
Users
Uploads
JS code
Search
Worlds
Minds
Users
Uploads
JS code
Intro
Introduction
Features
Definitions
Principles
The AI model
Teaching
Register a class
Learn
Getting started
P5 tutorial
Three.js tutorial
Coding course
Coding course II
Coding for kids
WebGL course
AI exercises
Browse
Starter Worlds
Editor's Choice
Showcase Worlds
Multi-user Worlds
Random Worlds
Advanced search
Docs
Docs
API docs
Register
Register
Forgot password
Login
Step 14. Else and Else if, AND and OR
Daniel Shiffman explains more advanced if statements, including "else" and
Boolean operators
. The World uses an AND operator to make a rectangle that lights up if the mouse is inside it.
Video
From:
Tutorial 3.3: Else and Else if, AND and OR
World
Tutorial 3.3
Else and Else if, AND and OR
Clone and Edit
Previous
Next: Step 15 of 17
Tweet this step: