简体   繁体   English

我们如何在没有内联的情况下检查 Azure 逻辑应用程序中的变量文本是否为数字

[英]How we can check the the variable text is number or not in Azure logic app without inline

I have variables a = "hhddj";我有变量a = "hhddj"; Variable b = "1234";变量b = "1234"; . . I need an expression that gives a is type string and b is type int .我需要一个表达式,它给出 a 是string类型,b 是int类型。 Like we have Isnumeric(a) needs to return false , and Isnumeric(b) needs to return true .就像我们有Isnumeric(a)需要返回false ,而Isnumeric(b)需要返回true

The following expression can be used for checking whether the text in variables('a') is in fact an integer:以下表达式可用于检查variables('a')中的文本实际上是否为 integer:

equals(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(variables('a'), '0', ''), '1', ''), '2', ''), '3', ''), '4', ''), '5', ''), '6', ''), '7', ''), '8', ''), '9', ''), '')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM