<?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>input :- test1 : &amp;quot;CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; &amp;quot;,

test2 : &amp;quot;; ; Related FOX; Related FOX; ; ; Trace; Trace&amp;quot;,      Desire output : &amp;quot; CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace&amp;quot;</title><link>https://community.appian.com/discussions/f/user-interface/33900/input---test1-cris3-ab-cris3-ab-soecs-soecs-test2-related-fox-related-fox-trace-trace-desire-output-cris3-ab-cris3-ab-related-fox-related-fox-soecs-soecs-trace-trace</link><description>There are 2 local variable: 
 local!test1 : &amp;quot;CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; &amp;quot;, 
 local!test2 : &amp;quot;; ; Related FOX; Related FOX; ; ; Trace; Trace&amp;quot;, 
 If no value available before semicolon symbol of local!test2 then a value from local!test1 should</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128966?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 17:47:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c021fc0-0348-43ad-baa7-89c2fe97dc56</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Good to know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128920?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 09:15:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:51d22ce1-fdf3-4404-be09-620125c7650a</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/rishukumarg1965"&gt;Rishu Kumar Gupta&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;You can try this code&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!test1 : &amp;quot;CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ;&amp;quot;,
  local!test2 : &amp;quot;; ; Related FOX; Related FOX; ; ; Trace; Trace&amp;quot;,
  local!array1:reject(fn!isnull,split(local!test1,&amp;quot;;&amp;quot;)),
  local!array2:reject(fn!isnull,split(local!test2,&amp;quot;;&amp;quot;)),
  a!forEach(
    items: enumerate(length(local!array1))+1,
    expression: if(
      a!isNotNullOrEmpty(trim(local!array1[fv!index])),
      local!array1[fv!index],
      local!array2[fv!index]
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128917?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 07:10:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c575d832-b4fe-428e-b63b-ee9d6756076f</guid><dc:creator>Rishu Kumar Gupta</dc:creator><description>&lt;p&gt;&lt;a href="/members/abhayd3663"&gt;Abhay Dalsaniya&lt;/a&gt;&amp;nbsp;The issue is resolved now&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f60a.svg" title="Blush"&gt;&amp;#x1f60a;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128817?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 17:29:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6181447-1a3f-4ab9-8080-622c67786948</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;If you can elaborate more on the usecase we might be able to provide alternative solutions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128572?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 15:03:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f83badb-1ec8-4087-a1ed-c8d701cfa1ae</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Feel free to adapt my code to fit your needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128570?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 15:00:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8f5e657-6527-497c-a427-a8f0c53b09e3</guid><dc:creator>Rishu Kumar Gupta</dc:creator><description>&lt;p&gt;&lt;span&gt;I want, If no value available before&amp;nbsp;semicolon symbol of local!test2 then a value from local!test1 should take place.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128569?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 14:42:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ba728ee-04e0-422d-953f-b9b79080631c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Again, I am not sure what you are looking for and you initial ask lacks any level of details and context. My recent podcast episode might be of interest for you:&amp;nbsp;&lt;a id="" href="https://appian.rocks/2023/12/20/episode-13-how-to-get-your-questions-answered/"&gt;https://appian.rocks/2023/12/20/episode-13-how-to-get-your-questions-answered/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The code snippet is an expression rule, and will not work in an interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128567?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 14:39:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99dd32a6-6b13-4191-b939-7caf95a4d6ac</guid><dc:creator>Rishu Kumar Gupta</dc:creator><description>&lt;p&gt;&lt;span&gt;Shon this error :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Interface Definition: Expression evaluation error [evaluation ID = I48HU] : An array of components may only contain components. Received Text at index 1.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: input :- test1 : "CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; ",

test2 : "; ; Related FOX; Related FOX; ; ; Trace; Trace",      Desire output : " CRIS3-AB;CRIS3-AB;Related FOX; Related FOX; SOECS; SOECS; Trace; Trace"</title><link>https://community.appian.com/thread/128565?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 14:31:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79cfbc5c-bbe4-4f36-a586-88b10645a4da</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I am not sure how your description matches the desired output, but I got some code to share:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!test1 : &amp;quot;CRIS3-AB; CRIS3-AB; ; ; SOECS; SOECS; ; &amp;quot;,
  local!test2 : &amp;quot;; ; Related FOX; Related FOX; ; ; Trace; Trace&amp;quot;,

  local!test1Splits: split(local!test1, &amp;quot;;&amp;quot;),
  local!test2Splits: split(local!test2, &amp;quot;;&amp;quot;),
  if(
    a!isNullOrEmpty(local!test2Splits[1]),
    a!update(
      local!test2Splits,
      1,
      local!test1Splits[1]
    ),
    local!test2
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>