<?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>What is the difference between boolean value true() and true.</title><link>https://community.appian.com/discussions/f/general/13471/what-is-the-difference-between-boolean-value-true-and-true</link><description>What exactly difference between true() and true. true() is a function. true is boolean value. But we can use both anywhere and it works.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61131?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 06:26:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:579f1451-4e07-4011-8447-374c3860a4ea</guid><dc:creator>paragk998</dc:creator><description>I think basic difference is Time and Space complexity&lt;br /&gt;
both are different types and used accordingly,&lt;br /&gt;
&lt;br /&gt;
consider a scenario- create an array of {true,true,.......true} of length 50&lt;br /&gt;
common approach is repeat(true,50) which takes 5 to 10 Ms to execute the code but use less memory resource.&lt;br /&gt;
&lt;br /&gt;
instead if you use apply(fn!true,enumerate(50)) it takes &amp;lt;1 Ms to execute&lt;br /&gt;
so this improves the performance, but use more memory resource because we are calling 3 functions&lt;br /&gt;
&lt;br /&gt;
but apply function need function as 1st parameter but not the value.&lt;br /&gt;
so both true() and true looks same but used according to requirements.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61122?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 01:42:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1d1cdc1-0e60-46a1-9845-efb2b10a1050</guid><dc:creator>aloks0189</dc:creator><description>&lt;p&gt;Hi Shubham Aware&lt;br /&gt; &lt;br /&gt; true is a literal value of type boolean whereas true() is a function which returns it&amp;#39;s output as true (literal) of type boolean.&lt;br /&gt; &lt;br /&gt; It&amp;#39;s similar as null and null() function&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please follow this&amp;nbsp;&lt;a href="http://cs-fundamentals.com/java-programming/literals-in-java.php"&gt;link&lt;/a&gt; to have more understanding about literals&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61118?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 21:04:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3c422d3-9205-4e4f-a852-3240a1980f4a</guid><dc:creator>harrisont606</dc:creator><description>They work the same, but you should pick one and use it consistently to improve the readability of your code.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61103?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 18:27:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a0af789-98ea-4fd2-8968-986551913fc5</guid><dc:creator>Rebecca Trinklein</dc:creator><description>&lt;p&gt;As far as I know, while true() and true are functionally the same in that they both result in the boolean value true, it is best to use true. Using true(), while effective, will evaluate the function each time it is used and make a small but existent negative impact on performance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61085?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 15:11:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecc76d5d-434f-4941-a758-a97510e2e0a5</guid><dc:creator>Larry Nguyen</dc:creator><description>I&amp;#39;m going to guess that there is no logical difference.  The Appian documentation states: &amp;quot;true() returns true&amp;quot; and &amp;quot;Returns the Boolean value true.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.3/fnc_logical_true.html"&gt;docs.appian.com/.../fnc_logical_true.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61084?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 15:08:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90b7b3ba-60ca-43cd-9aaf-4114363e73f2</guid><dc:creator>ajinkyab277</dc:creator><description>I thinks true() is function where as true is literal value . apart from that I done see there is any difference as we can use true and true() interchangeably&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61082?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 15:06:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:826db7ef-8c28-4625-a95d-642225b2d7e3</guid><dc:creator>charlesm492</dc:creator><description>I have always wondered this as well, other than the obvious answer that one is a function.  Maybe something like if you wanted to use the function version as an input for a looping function?  Though, I can&amp;#39;t really think of any case where that might be necessary.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61068?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 14:15:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8449b36b-d4f2-48cd-a224-6c1bf492fa79</guid><dc:creator>laurenc20</dc:creator><description>I also don&amp;#39;t know of any differences. They should be able to be used in place of each other and the system still work as you intended it.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61067?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 14:11:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a99fb97b-3738-4d57-ae74-605cc959246e</guid><dc:creator>philips397</dc:creator><description>That is the only difference that I am aware of. One is a Boolean, the other a function. I am curious if anyone else has anything to say.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between boolean value true() and true.</title><link>https://community.appian.com/thread/61050?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 12:30:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3df5907-7f12-4cc2-820d-b3a1fea32672</guid><dc:creator>Mike Lasutschinkow</dc:creator><description>As you have said, the main difference is the type, true being a Boolean and true() being a function (that returns a boolean).&lt;br /&gt;
&lt;br /&gt;
I suspect that true() and false() exist to give the developer the option to use booleans in places where functions are expected, but this is speculation.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>