<?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>Function need to evaluate the expression</title><link>https://community.appian.com/discussions/f/user-interface/38887/function-need-to-evaluate-the-expression</link><description>Hey, I am exploring some thing new in Appain functions, Supose if user enter 1+2+3+4+5 in a text box then is there any function to evaluate this and give me the sum of all those numbers as 15. Thanks in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Function need to evaluate the expression</title><link>https://community.appian.com/thread/147080?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 12:29:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5975180-6cb8-4b33-aca9-0081775b01ee</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;your options are pretty much to either manually build a parser (if you control the allowed operators tightly enough, it&amp;#39;s doable, but cumbersome as stefan already mentioned), or use undocumented functionality like &amp;quot;function-which-must-not-be-named&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function need to evaluate the expression</title><link>https://community.appian.com/thread/147071?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 07:22:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:996bc32d-d5c0-4936-9c5d-eb03ce05e470</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is no such function in Appian. And parsing this manually becomes a pain quickly as you need to evaluate the operations in the right order.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function need to evaluate the expression</title><link>https://community.appian.com/thread/147068?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 05:53:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3913e121-a773-4405-a006-5ac714878e60</guid><dc:creator>Hacker323671</dc:creator><description>&lt;p&gt;Hey &lt;a href="/members/mathieud0001"&gt;Mathieu Drouin&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for your response.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This will only work for sum of numbers but what I need is to calculate the whole expression which includes mathematical operations like +,-,/,*&lt;br /&gt;Example... If user enters 5*2+1-10/2 then the result should be 6.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function need to evaluate the expression</title><link>https://community.appian.com/thread/147055?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 21:40:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:353d89b2-6b24-477a-bed2-e8762ee19576</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!text: &amp;quot;1+2+3+4+5&amp;quot;,
  local!textItems: split(local!text, &amp;quot;+&amp;quot;),
  local!textItemsInteger: tointeger(local!textItems),
  sum(local!textItemsInteger)
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Yeah, you could do that. But I don&amp;#39;t know, seems a little brittle. Seems like something that may be better suited for an LLM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>