<?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 Split Command in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Command/m-p/88027#M28123</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hey folks, I am trying to parse a string output into useable numbers and need a little help.&lt;BR /&gt;
&lt;BR /&gt;
The string, "dep", is of variable format and can contain numbers such as 7-1/2 or 9 or 10-1/2.&lt;BR /&gt;
&lt;BR /&gt;
So far I have the following command:&lt;BR /&gt;
&lt;BR /&gt;
	nvars=SPLIT (dep,"%n-%n/%n",nx,ss3,ny,ss4,nz)&lt;BR /&gt;
	IF nz&amp;lt;&amp;gt;0 THEN b=1"*(nx+ny/nz)/2 ELSE b=nx*1"/2&lt;BR /&gt;
&lt;BR /&gt;
This works great provided that the string for "dep" is represented by a single digit or by the five place format such as 7-1/2. However, when I get to values for "dep" such as 10-1/2 the SPLIT command breaks down for me and will result in a value of 10" not 10 1/2". How can I change this to work right?&lt;BR /&gt;
&lt;BR /&gt;
I am sick today so this is probably staring me in the face and I just can't see it. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(edit)=============&lt;BR /&gt;
I found it this morning. It was not that the GDL sytanx was wrong but that I changed the format of my values part way through by forgetting the dash. So the values changed from "XX-X/X" to "XX X/X".&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 04 May 2008 02:51:18 GMT</pubDate>
    <dc:creator>Erich</dc:creator>
    <dc:date>2008-05-04T02:51:18Z</dc:date>
    <item>
      <title>Split Command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Split-Command/m-p/88027#M28123</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hey folks, I am trying to parse a string output into useable numbers and need a little help.&lt;BR /&gt;
&lt;BR /&gt;
The string, "dep", is of variable format and can contain numbers such as 7-1/2 or 9 or 10-1/2.&lt;BR /&gt;
&lt;BR /&gt;
So far I have the following command:&lt;BR /&gt;
&lt;BR /&gt;
	nvars=SPLIT (dep,"%n-%n/%n",nx,ss3,ny,ss4,nz)&lt;BR /&gt;
	IF nz&amp;lt;&amp;gt;0 THEN b=1"*(nx+ny/nz)/2 ELSE b=nx*1"/2&lt;BR /&gt;
&lt;BR /&gt;
This works great provided that the string for "dep" is represented by a single digit or by the five place format such as 7-1/2. However, when I get to values for "dep" such as 10-1/2 the SPLIT command breaks down for me and will result in a value of 10" not 10 1/2". How can I change this to work right?&lt;BR /&gt;
&lt;BR /&gt;
I am sick today so this is probably staring me in the face and I just can't see it. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(edit)=============&lt;BR /&gt;
I found it this morning. It was not that the GDL sytanx was wrong but that I changed the format of my values part way through by forgetting the dash. So the values changed from "XX-X/X" to "XX X/X".&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 May 2008 02:51:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Split-Command/m-p/88027#M28123</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2008-05-04T02:51:18Z</dc:date>
    </item>
  </channel>
</rss>

