电源应用程序整数比较错误(包含)
我正在获取联系记录的数量,我想比较文本。即使数字为555555555。
其转换为文本,但仍会返回false
我尝试将 =“ https://i.sstatic.net/skuw2.png” alt =“在此处输入图像说明”>
I'm taking the number of the contact record and I want to compare text. This returns false even if the number is 555555555.
I tried converting it to text but it still returns false
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我测试的流程。
左手侧表达式为...
string(variables('number'))
...,右手侧表达式为...string(555555)
...产生true
结果。在
55555
上使用双引号还产生了true
的结果。您需要小心双引号,它们在添加并运行流程后消失,但JSON定义会告诉您详细的故事...
数字比较
字符串比较
This is the flow I tested with.
The left hand side expression is ...
string(variables('Number'))
... and the right hand side expression is ...string(55555)
... that produced atrue
result.Using double quotes around the
55555
also produced a result oftrue
.You need to be careful with double quotes though, they disappear after your add and run the flow but the JSON definition will tell you the detailed story ...
Number Comparison
String Comparison