<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Check if given number is between 1 &amp;amp; 20 digits</title><link>https://community.appian.com/discussions/f/new-to-appian/26758/check-if-given-number-is-between-1-20-digits</link><description>Please help me check if the given number is between 1 &amp;amp; 20 digits and doesn&amp;#39;t contain any alphabet in it. 
 Like we have like(fv!item,&amp;quot;[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]&amp;quot;) to check the given number should be exactly 10 digits and no alphabets</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Check if given number is between 1 &amp; 20 digits</title><link>https://community.appian.com/thread/105046?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 14:56:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31e19aa1-b37d-4604-9b63-b46c7b3f35d5</guid><dc:creator>karthikr067273</dc:creator><description>&lt;p&gt;Hi Shamima&lt;br /&gt;Maybe the following piece of code will work for you.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;and(a!isNotNullOrEmpty(fv!item), len(fv!item) &amp;lt;= 20, all(fn!like, char(code(fv!item)), &amp;quot;[0-9]&amp;quot;))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if given number is between 1 &amp; 20 digits</title><link>https://community.appian.com/thread/105039?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 13:11:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66bdc2f8-94a5-43f5-87c2-6b9cd73681ab</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;and(
  a!isNotNullOrEmpty(ri!number),
  len(ri!number) &amp;lt; 20,
  a!isNullOrEmpty(stripwith(ri!number,&amp;quot;0123456789&amp;quot;))
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The first condition checks that it should not be less than 1 digit.&amp;nbsp;&lt;br /&gt;Second condition checks that it should not be more than 20 digits.&amp;nbsp;&lt;br /&gt;Third condition checks that it should only contain numbers.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>