Skip to content

Commit abd1c4a

Browse files
committed
fix: Dead link to logical operators
This link was present in the old site not in the new https://web.archive.org/web/20240228085129/https://p5js.org/examples/control-logical-operators.html I guess it was removed since it was a faulty or broken
1 parent 86528f7 commit abd1c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/tutorials/en/conditionals-and-interactivity.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ Notice that if the Boolean expression in the first if statement is `false`, the
843843

844844
### Logical Operators: `&&` and `||`
845845

846-
Another way to write conditional statements with more than one condition is by using [logical operators](https://p5js.org/examples/control-logical-operators.html). The AND operator (`&&`) is used when *both* conditions must be `true` for a code block to run. The OR operator (`||`) is used when *either* condition must be true for a code block to run.
846+
Another way to write conditional statements with more than one condition is by using logical operators. The AND operator (`&&`) is used when *both* conditions must be `true` for a code block to run. The OR operator (`||`) is used when *either* condition must be true for a code block to run.
847847

848848
We can rewrite the nested conditional in the animated sunrise sketch using the AND (`&&`) logical operator since it requires that `sunHeight` is less than 130 *AND* greater than 480. In the code sample below, Boolean expressions on each side of the operator must be `true` in order for the code in its code block to run: 
849849

0 commit comments

Comments
 (0)