Logic Select
![logic select](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/logic_select-dd6a9dcc9d21ce4dcc6617cea2d65257.png)
Use Logic Select to pass a value based on a condition. Logic Select is in the Logic category.
Input
Name | Data Type | Description |
---|---|---|
Condition | Boolean | A boolean value that determines the result. |
Then | Int | The value to pass if the condition is true. |
Else | Int | The value to pass if the condition is false. |
Output
Name | Data Type | Description |
---|---|---|
Value | Boolean | A boolean signal of the comparison result. |
Example
![logic select example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/logic_select_example-a3a6ece406ac9c3376828e14305391a8.gif)
This example sets the R and G colors for the PBR material to 0.4 if the mouth opens an even number of times. If the mouth opens an odd number of times, it sets the R and G colors for the PBR material to 0.9.
![logic select node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/logic_select_node-80f50037f43a69e9372c460cfbadf538.png)