<?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: if statement script line is too long?? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279169#M3823</link>
    <description>either "," or  "\" can be a breaker here ("," only if a command accepts "," like list of parameters...list of put's and so on)&lt;BR /&gt;
&lt;BR /&gt;
and use "&amp;amp;" instead of "and", "|" instead of "or" - lilttle shorter and less typing...&lt;BR /&gt;
&lt;BR /&gt;
Your line can end on "&amp;amp;\" and the next will start with the rest after ....(can be of ourse more...)&lt;BR /&gt;
&lt;BR /&gt;
maybe like this:&lt;BR /&gt;

&lt;PRE&gt;if 	(overall_frame=0)&amp;amp;\
	(frame_1_mvo=0)&amp;amp;\
	(frame_2_mvo=0)&amp;amp;\
	(frame_3_mvo=0)&amp;amp;\
	(frame_4_mvo=0)&amp;amp;\
	(frame_5_mvo=0)&amp;amp;\
	(frame_6_mvo=0)&amp;amp;\
	(frame_7_mvo=0)&amp;amp;\
	(frame_8_mvo=0)&amp;amp;\
	(frame_9_mvo=0)&amp;amp;\
	(frame_10_mvo=0)&amp;amp;\
	(frame_11_mvo=0)&amp;amp;\
	(frame_12_mvo=0)&amp;amp;\
	(frame_13_mvo=0)&amp;amp;\
	(frame_14_mvo=0) then&lt;/PRE&gt;

Piotr</description>
    <pubDate>Wed, 28 Mar 2018 15:31:12 GMT</pubDate>
    <dc:creator>Piotr Dobrowolski</dc:creator>
    <dc:date>2018-03-28T15:31:12Z</dc:date>
    <item>
      <title>if statement script line is too long??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279168#M3822</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I have an if statement which includes 15 different variables however it is saying the script line is too long. So the logical thing to do it separate the single line into multiple lines...well I can't seem to figure out a way of doing this.&lt;BR /&gt;

&lt;PRE&gt;if (overall_frame=0)and(frame_1_mvo=0)and(frame_2_mvo=0)and(frame_3_mvo=0)and(frame_4_mvo=0)and(frame_5_mvo=0)and(frame_6_mvo=0)and(frame_7_mvo=0)and(frame_8_mvo=0)and(frame_9_mvo=0)and(frame_10_mvo=0)and(frame_11_mvo=0)and(frame_12_mvo=0)and(frame_13_mvo=0)and(frame_14_mvo=0)then
&lt;/PRE&gt;

Any help would be appreciated!&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:17:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279168#M3822</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-03-28T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: if statement script line is too long??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279169#M3823</link>
      <description>either "," or  "\" can be a breaker here ("," only if a command accepts "," like list of parameters...list of put's and so on)&lt;BR /&gt;
&lt;BR /&gt;
and use "&amp;amp;" instead of "and", "|" instead of "or" - lilttle shorter and less typing...&lt;BR /&gt;
&lt;BR /&gt;
Your line can end on "&amp;amp;\" and the next will start with the rest after ....(can be of ourse more...)&lt;BR /&gt;
&lt;BR /&gt;
maybe like this:&lt;BR /&gt;

&lt;PRE&gt;if 	(overall_frame=0)&amp;amp;\
	(frame_1_mvo=0)&amp;amp;\
	(frame_2_mvo=0)&amp;amp;\
	(frame_3_mvo=0)&amp;amp;\
	(frame_4_mvo=0)&amp;amp;\
	(frame_5_mvo=0)&amp;amp;\
	(frame_6_mvo=0)&amp;amp;\
	(frame_7_mvo=0)&amp;amp;\
	(frame_8_mvo=0)&amp;amp;\
	(frame_9_mvo=0)&amp;amp;\
	(frame_10_mvo=0)&amp;amp;\
	(frame_11_mvo=0)&amp;amp;\
	(frame_12_mvo=0)&amp;amp;\
	(frame_13_mvo=0)&amp;amp;\
	(frame_14_mvo=0) then&lt;/PRE&gt;

Piotr</description>
      <pubDate>Wed, 28 Mar 2018 15:31:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279169#M3823</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2018-03-28T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: if statement script line is too long??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279170#M3824</link>
      <description>Hi.&lt;BR /&gt;
You could also look for another way to script it when there are comparisons like the one in your script. Looks like you check mvo for certain values (from a library global I assume), so you could store all these values in an array, an check values in a FOR loop. This might be easier to maintain in the long run.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,</description>
      <pubDate>Wed, 28 Mar 2018 17:40:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/if-statement-script-line-is-too-long/m-p/279170#M3824</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2018-03-28T17:40:03Z</dc:date>
    </item>
  </channel>
</rss>

