簡體   English   中英

我們如何在沒有內聯的情況下檢查 Azure 邏輯應用程序中的變量文本是否為數字

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

我有變量a = "hhddj"; 變量b = "1234"; . 我需要一個表達式,它給出 a 是string類型,b 是int類型。 就像我們有Isnumeric(a)需要返回false ,而Isnumeric(b)需要返回true

以下表達式可用於檢查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