<?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>logic Scenario</title><link>https://community.appian.com/discussions/f/general/27269/logic-scenario</link><description>lets say I had a word &amp;quot;Appian&amp;quot; 
 now I need to covert into a list 
 expecting a result like below( Letter - (Number of times that particular letter is being repeated in the given word)) 
 A-2 
 p-2 
 i-1 
 n-1 
 
 Please let me know logic to achieve </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: logic Scenario</title><link>https://community.appian.com/thread/106937?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 11:10:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b28f00d2-fa67-43d3-ae12-394e7cf4b669</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Already answered here -&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/rules/27059/how-to-iterate-through-a-string"&gt;community.appian.com/.../how-to-iterate-through-a-string&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logic Scenario</title><link>https://community.appian.com/thread/106936?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 11:03:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1554187c-0edd-4df0-a78d-e82ab24a1f78</guid><dc:creator>Harshitha Mangamuri</dc:creator><description>&lt;p&gt;Hi @&lt;a class="internal-link view-user-profile" href="/members/shilpak8740"&gt;shilpak8740&lt;/a&gt;, Please refer this code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
local!name: upper(&amp;quot;Appian&amp;quot;),
local!namearray: a!forEach(
items: enumerate(len(local!name)) + 1,
expression: local!name[fv!index]
),
local!union: union(local!namearray, local!namearray),
local!result: a!forEach(
items: local!union,
expression: {
fv!item &amp;amp; &amp;quot; - &amp;quot; &amp;amp; count(wherecontains(fv!item, local!namearray))
}
),
local!result
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logic Scenario</title><link>https://community.appian.com/thread/106935?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 10:58:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:52316387-3ff9-417e-b85b-c29b43aa071a</guid><dc:creator>surjitg</dc:creator><description>&lt;p&gt;Try something like this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!input: &amp;quot;Appian&amp;quot;,
  local!inputChars: char(code(local!input)),
  local!uniqueInputChars: union(local!inputChars, local!inputChars),
  a!forEach(
    local!uniqueInputChars,
    a!map(
      inputChar: fv!item,
      count: length(
        wherecontains(fv!item, local!inputChars)
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>