And
![and](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/and-66cdf81e7a27c559cb71c24b24bc4bfd.png)
Use And to check if all inputs are true. And is in the Logic category.
Input
Name | Data Type | Description |
---|---|---|
Value1 | Boolean | A boolean value. |
Value2 | Boolean | Another boolean value. |
Output
Name | Data Type | Description |
---|---|---|
Value | Boolean | A boolean signal of the operation result. |
Example
![and example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/and_example-80c83749fe68a4772afbee51622f459b.gif)
When the camera detects the red dot as visible, and the game time is greater than 5 seconds, then the green dot will be set to be visible.
![and node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/and_node-0acf23b5643b839bbfd624acd4b3bb77.png)