<?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>Funtions</title><link>https://community.appian.com/discussions/f/general/25891/funtions</link><description>Hi, 
 I have a value like APPIAN123, need to display the output as APPIAN321 
 Guide me</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Funtions</title><link>https://community.appian.com/thread/101228?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 08:33:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca207575-d372-468d-bb65-ed0ab07b9bf5</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Ok, so this is pretty straightforward. let&amp;#39;s break it down into a smaller set of problems:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;we extract the numbers from the string - we can use fn!right() to do this since we know the number part is always the same (3)&lt;/li&gt;
&lt;li&gt;we can extract the text from the string - we can use fn!length() to establish how long the whole string is and then subtract 3, since we know the numbers will always be 3 long, and so use fn!left() to extract the characters&lt;/li&gt;
&lt;li&gt;we need to reverse the numbers - fn!reverse() will only work on an array so you can create an array of the numbers from the extract taken above and then reverse them&lt;/li&gt;
&lt;li&gt;you can then join the reversed numbers array so that it is now one string&lt;/li&gt;
&lt;li&gt;finally you can concatenate the two strings - the extracted characters part, and the reversed numbers string&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;hopefully that&amp;#39;ll give you a direction to solve this for yourself&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Funtions</title><link>https://community.appian.com/thread/101226?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 08:32:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1ff1a3a-2352-4311-b05d-717eef756e29</guid><dc:creator>Durgesh Kahar</dc:creator><description>&lt;p&gt;You can try something like this -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!a: &amp;quot;APPIAN123&amp;quot;,&lt;br /&gt; local!numberList: touniformstring({ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }),&lt;br /&gt; local!length: len(local!a),&lt;br /&gt; local!lengthArray: enumerate(local!length) + 1,&lt;br /&gt; &lt;br /&gt; /* Get all the letters array */&lt;br /&gt; local!lettersArray: a!forEach(&lt;br /&gt; items: local!lengthArray,&lt;br /&gt; expression: a!localVariables(&lt;br /&gt; local!item: index(local!a, fv!item, &amp;quot;&amp;quot;),&lt;br /&gt; if(&lt;br /&gt; contains(local!numberList, local!item),&lt;br /&gt; null,&lt;br /&gt; local!item&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; local!lettersLength: length(local!lettersArray),&lt;br /&gt; &lt;br /&gt; /* Get all the numbers array */&lt;br /&gt; local!numbersArray: a!forEach(&lt;br /&gt; items: local!lengthArray,&lt;br /&gt; expression: a!localVariables(&lt;br /&gt; local!item: index(local!a, fv!item, &amp;quot;&amp;quot;),&lt;br /&gt; if(&lt;br /&gt; contains(local!numberList, local!item),&lt;br /&gt; local!item,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; local!numbersLength: length(local!numbersArray),&lt;br /&gt; &lt;br /&gt; /* Get final output */&lt;br /&gt; local!actualLetters: concat(&lt;br /&gt; rdrop(local!lettersArray, local!numbersLength)&lt;br /&gt; ),&lt;br /&gt; local!actualNumbersArray: ldrop(local!numbersArray, local!lettersLength),&lt;br /&gt; local!actualNumbersReverse: concat(reverse(local!actualNumbersArray)),&lt;br /&gt; concat(&lt;br /&gt; local!actualLetters,&lt;br /&gt; local!actualNumbersReverse&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Funtions</title><link>https://community.appian.com/thread/101225?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 08:21:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e484c57-150c-43ce-bf7e-e365f802597b</guid><dc:creator>snehith</dc:creator><description>&lt;p&gt;Hi stewart,&lt;/p&gt;
&lt;p&gt;- The whole length is not fixed, but the length of the number is the same(3)&lt;/p&gt;
&lt;p&gt;- Text is always A thru Z&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Funtions</title><link>https://community.appian.com/thread/101224?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 08:13:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96e29a01-5ca9-4c0b-b337-a00927de2632</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;It depends on what the rules are here governing the format of the value you&amp;#39;re referencing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;is&amp;nbsp;the whole thing always a fixed length?&lt;/li&gt;
&lt;li&gt;is it always text (letters A thru Z (upper case? and/or a thru z? .(lower case)) followed by&amp;nbsp;numbers (0 thru 9)?&lt;/li&gt;
&lt;li&gt;are the lengths of the text and number parts always the same?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Funtions</title><link>https://community.appian.com/thread/101220?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 07:49:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fbc3c964-1973-40b8-9ee8-0fcfe8222cad</guid><dc:creator>snehith</dc:creator><description>&lt;p&gt;hi puneet,&lt;/p&gt;
&lt;p&gt;ya, it is fixed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Funtions</title><link>https://community.appian.com/thread/101219?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 07:46:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7070e6d0-7e22-4fa4-be9c-34f3060bc3e7</guid><dc:creator>puneets0004</dc:creator><description>&lt;p&gt;Hi, can you confirm the last number digit will be fixed all time or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>