Less Than
![less than](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/less_than-6680ea8da5f92f9155bf114af889fa6a.png)
Use Less Than to check if one value is less than another. Less Than is in the Logic category.
Input
Name | Data Type | Description |
---|---|---|
Value1 | Int/Double | The base value. |
Value2 | Int/Double | The value to compare to the base. |
Output
Name | Data Type | Description |
---|---|---|
Value | Boolean | A boolean signal of the comparison result. |
Example
![less than example](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/less_than_example-210052ee7e690d4c0d4135b671f57505.gif)
This example sets a variable called “open times” to record the number of times the mouth has opened. If the mouth opens less than 3 times, it will hide the sphere, otherwise it will show.
![less than node](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/less_than_node-0fa93ec2aa535f0416c0a81eef547802.png)