6.2 Equals 等于 - Logic 逻辑


Check if two numbers are equal, or approximately equal within a tolerance. Useful for bouncy values that don't settle on round integers.

检查两个数字是否相等,或在 Tolerance 值内。适用于不遵循四舍五入整数的弹性值。

输入口

First Value 第一个值
The base number.
基数。

Second Value 第二个值
The number to compare to the base.
和基数相比较。

Tolerance 容差
A number that represents the wiggle room between the first and second values where. For example, a tolerance of .1 means that 2.1 is equal to 2. Useful for bouncy/smoothed values.
表示基数和第二个值之间允许相差范围的数字。例:公差为0.1,表示2.1或1.9等于2。适用于弹性/平滑值。

输出口

Output 输出
A boolean that is true if the first and second values are equal within the tolerance.
基数和第二个值在容差值內时布尔值为真。


相关模块

And Equals Exactly 完全等于 Greater Than 大于 Greater Than or Equal 大于或等于 Less Than 小于 Less Than or Equal 小于或等于 Not 翻转 Or 或


案例

5. Facebook New Stories
当新闻滚动一定距离时触发提示出现。

7. Instagram Adjust
通过拖动来控制 Instagram 的校直工具。

20. Moments Onboarding
Moments APP 的启动流。


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容