<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to store values for later use? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277691#M9736</link>
    <description>Create parameters for ‘previous_A’ and 'difference_A'&lt;BR /&gt;
Create a boolean parameter called ‘set_previous’&lt;BR /&gt;
You don’t need a parameter for ‘current_A’ because that is ‘A’&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if set_previous = 0 then&lt;BR /&gt;
	previous_A = A&lt;BR /&gt;
	PARAMETERS previous_A = previous_A&lt;BR /&gt;
	set_previous = 1&lt;BR /&gt;
	PARAMETERS set_previous = set_previous&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
difference_A = previous_A - A&lt;BR /&gt;
PARAMETERS difference_A = difference_A&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This will constantly give you the difference based on the original ‘previous_A’.&lt;BR /&gt;
Now you can set a new value for ‘A’ and turn off the ‘set-previous’ switch and it will reset the ‘previous_A’ value and the switch will instantly turn back on again.&lt;BR /&gt;
Type in a new value for A and you will have a new difference.&lt;BR /&gt;
&lt;BR /&gt;
Not quite sure what you would want this for but it will work.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 19 Jun 2015 05:46:26 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2015-06-19T05:46:26Z</dc:date>
    <item>
      <title>How to store values for later use?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277690#M9735</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
My situation can be simplified to something like this. I'd like to store the values "A" and then turn it into previousA. And then store the values of "A" again when user change it, and turn it into currentA. So I can do something like:&lt;BR /&gt;
&lt;BR /&gt;
differentA = previousA - currentA&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to do this?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jun 2015 04:34:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277690#M9735</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2015-06-19T04:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to store values for later use?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277691#M9736</link>
      <description>Create parameters for ‘previous_A’ and 'difference_A'&lt;BR /&gt;
Create a boolean parameter called ‘set_previous’&lt;BR /&gt;
You don’t need a parameter for ‘current_A’ because that is ‘A’&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if set_previous = 0 then&lt;BR /&gt;
	previous_A = A&lt;BR /&gt;
	PARAMETERS previous_A = previous_A&lt;BR /&gt;
	set_previous = 1&lt;BR /&gt;
	PARAMETERS set_previous = set_previous&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
difference_A = previous_A - A&lt;BR /&gt;
PARAMETERS difference_A = difference_A&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This will constantly give you the difference based on the original ‘previous_A’.&lt;BR /&gt;
Now you can set a new value for ‘A’ and turn off the ‘set-previous’ switch and it will reset the ‘previous_A’ value and the switch will instantly turn back on again.&lt;BR /&gt;
Type in a new value for A and you will have a new difference.&lt;BR /&gt;
&lt;BR /&gt;
Not quite sure what you would want this for but it will work.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 19 Jun 2015 05:46:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277691#M9736</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-06-19T05:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to store values for later use?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277692#M9737</link>
      <description>Thank you so much for your quick reply, Barry. I'll test/apply your idea asap.</description>
      <pubDate>Fri, 19 Jun 2015 06:09:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-store-values-for-later-use/m-p/277692#M9737</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2015-06-19T06:09:18Z</dc:date>
    </item>
  </channel>
</rss>

