Control Structures
Goals
You know how you can control the execution flow of your program
If-Then-Else
if (numberDevices > 0) {
log("Great work! I found >" + newDevices.length + "< devices!")
}
else {
log("Uggh, something went wrong. I didn't detect any devices!");
}
Switch-Case
Last updated
Was this helpful?