I have variables a = "hhddj";
Variable b = "1234";
. I need an expression that gives a is type string
and b is type int
. Like we have Isnumeric(a)
needs to return false
, and Isnumeric(b)
needs to return true
.
The following expression can be used for checking whether the text in variables('a')
is in fact an integer:
equals(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(variables('a'), '0', ''), '1', ''), '2', ''), '3', ''), '4', ''), '5', ''), '6', ''), '7', ''), '8', ''), '9', ''), '')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.