<?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>starting number is 100 &amp;amp; ending number is 200, I need all numbers that contains 5</title><link>https://community.appian.com/discussions/f/rules/28485/starting-number-is-100-ending-number-is-200-i-need-all-numbers-that-contains-5</link><description>starting number is 100 &amp;amp; ending number is 200, I need all numbers that contains 5</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: starting number is 100 &amp; ending number is 200, I need all numbers that contains 5</title><link>https://community.appian.com/thread/111721?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 11:34:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2407bd74-dd9b-48f8-ba97-a4950c07cae2</guid><dc:creator>arunrajpurohit</dc:creator><description>&lt;p&gt;Hi, one more way to do this....&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
/*rule will return -1 if it does not find any number ending with 5*/

a!localVariables(
  local!start:100,
  local!end: 200,
  wherecontains(
    5,
    tointeger(
      apply(
        fn!cleanwith,
        enumerate(local!end - local!start),
        5
      )
    )
  ) - 1 + local!start
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: starting number is 100 &amp; ending number is 200, I need all numbers that contains 5</title><link>https://community.appian.com/thread/111714?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 10:55:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97330ef4-880c-40f9-9039-373a02dbabf0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Or, without abusing that foreach ;-)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;filter(
  like(_, &amp;quot;*5*&amp;quot;),
  enumerate(100)+100
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: starting number is 100 &amp; ending number is 200, I need all numbers that contains 5</title><link>https://community.appian.com/thread/111706?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 09:45:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ad74b4c-e283-421f-81c4-5608440769a9</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
  items: enumerate(100)+100,
  expression: if(
    like(fv!item,&amp;quot;*5*&amp;quot;),
    fv!item,
    {}
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>