<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/</link><description>Recent posts to Greater than, less than or less than, greater than?</description><atom:link href="https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 25 Jan 2021 15:51:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/feed.rss" rel="self" type="application/rss+xml"/><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=25#8c7b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have always used&lt;br/&gt;
&amp;lt;=&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;=&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;also I always use not port instead of ! port because ! did not mean not in any other basic I learnt.&lt;/p&gt;
&lt;p&gt;I found that var--    , ie var=var-1&lt;br/&gt;
compiles same as var--- ,,,,,which it should be&lt;br/&gt;
both work???&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">stan cartwright</dc:creator><pubDate>Mon, 25 Jan 2021 15:51:29 -0000</pubDate><guid>https://sourceforge.netc46aee3dcb83a5b984c3d0b0124423b10bfe9aef</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=250#0a3b/3102/6db5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I should be safe for a while then ;-)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mkstevo</dc:creator><pubDate>Mon, 25 Jan 2021 15:04:10 -0000</pubDate><guid>https://sourceforge.netf61b092f3c2e83bf0ba7e86594b6ae07a6b699c5</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=50#67d4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;You didn't say anything about using != instead of &amp;lt;&amp;gt;, is that more inefficient, i.e. does it do a "not" before comparing?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim giordano</dc:creator><pubDate>Mon, 25 Jan 2021 14:59:56 -0000</pubDate><guid>https://sourceforge.net0d2936272465b4c39a89a879e8e003a1d162179e</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=250#0a3b/3102</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Well... removing  stuff is actually harder than adding stuff.... removing means we could impact/break existing code.&lt;/p&gt;
&lt;p&gt;:-)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anobium</dc:creator><pubDate>Mon, 25 Jan 2021 14:51:49 -0000</pubDate><guid>https://sourceforge.net8a23439515fe61c9a55b26a5d29588e5e8511b4b</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=250#0a3b</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;So please use &amp;lt;&amp;gt;, &amp;lt;= and &amp;gt;= (as you would in QBASIC or FreeBASIC).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Alrighty then. &amp;lt;&amp;gt;, &amp;lt;= and &amp;gt;= it will be from now on. &lt;/p&gt;
&lt;p&gt;Could I request that if the compiler is updated so that "=&amp;lt;" and "=&amp;gt;" stop working, an error is displayed please? Otherwise I'll be deep in the brown stuff...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mkstevo</dc:creator><pubDate>Mon, 25 Jan 2021 13:49:23 -0000</pubDate><guid>https://sourceforge.net2b453f1095faf7431114411dc1b988312edeb85c</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=25#a6f7/4fe6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The single character operators are a bit of a trick used to make part of the compiler slightly simpler. I was very inexperienced when I wrote the code that handles equations, and decided that things could be kept simpler if all operators were a single character. Because ~, { and } have no other meaning to the compiler, those were what I used for &amp;lt;&amp;gt;, &amp;lt;= and &amp;gt;=.&lt;br/&gt;
If that part of the compiler gets a rewrite at any point in the future, the single character versions could disappear, so please use &amp;lt;&amp;gt;, &amp;lt;= and &amp;gt;= (as you would in QBASIC or FreeBASIC).&lt;/p&gt;
&lt;p&gt;(We can probably keep =&amp;lt; though, I don't think that has any other meaning in any other BASIC dialect?)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hugh Considine</dc:creator><pubDate>Mon, 25 Jan 2021 01:35:27 -0000</pubDate><guid>https://sourceforge.net68710cb68cb36fda86b0773fe258023e881ed006</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=250#a755</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;So I can continue with my "preferred" &lt;br/&gt;
"&amp;gt;="&lt;br/&gt;
and&lt;br/&gt;
"=&amp;lt;"&lt;br/&gt;
without issues.&lt;/p&gt;
&lt;p&gt;I don't think I'd enjoy the "{" , "}" versions. I would be forever worried about seeing unmatched opening/closing braces. I'd have to add another nearby and close them...&lt;/p&gt;
&lt;p&gt;The "~" wouldn't offend me in the same way, but it might well confuse me. As I've been happily using "&amp;lt;&amp;gt;" for decades, I think I'll stick with that.&lt;/p&gt;
&lt;p&gt;I woke up this morning, thinking of some code I was going to write, and it had been worrying me in my sleep whether it was "&amp;lt;=" or "=&amp;lt;". Then of course I wondered if I'd been using the wrong one. At least there is no wrong one. &lt;/p&gt;
&lt;p&gt;The relief, phew! I'll hopefully not be waking up in a cold sweat early tomorrow morning.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mkstevo</dc:creator><pubDate>Sun, 24 Jan 2021 16:59:09 -0000</pubDate><guid>https://sourceforge.netb4568450a570551689b42b751c880fa6b0b96cb3</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=250#a6f7</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Great questions....&lt;/p&gt;
&lt;p&gt;"=&amp;gt;" the  same  as "&amp;gt;="  and is "}"&lt;br/&gt;
"=&amp;lt;" the  same  as "=&amp;lt;"  and is "{"&lt;br/&gt;
"&amp;lt;&amp;gt;" the  same as  "~"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anobium</dc:creator><pubDate>Sun, 24 Jan 2021 16:43:38 -0000</pubDate><guid>https://sourceforge.net64e24cbefcb442eda0bce9a7cca35b9d51b4fd29</guid></item><item><title>Greater than, less than or less than, greater than?</title><link>https://sourceforge.net/p/gcbasic/discussion/579125/thread/f5907d9cba/?limit=250#0c9d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here's my contribution to daftest question of the week.&lt;/p&gt;
&lt;p&gt;When testing a value to see if it is greater than, or less than a limit I'd write...&lt;/p&gt;
&lt;p&gt;Less than:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For greater than:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
     &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If I want to test for a value that is Less than or equal to:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;But should that be:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;=&amp;lt;&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Likewise, should I write:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Or:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then for something this is not equal to a given value I tend to use:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Alternatively could I (should I) use:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Or...&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt; &lt;span class="nv"&gt;Value&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nv"&gt;Limit&lt;/span&gt; &lt;span class="k"&gt;Then&lt;/span&gt;
    &lt;span class="nv"&gt;Code&lt;/span&gt; &lt;span class="nv"&gt;here&lt;/span&gt;...
&lt;span class="k"&gt;End&lt;/span&gt; &lt;span class="k"&gt;If&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Does any of this matter to GCB or will I end up with the same results?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mkstevo</dc:creator><pubDate>Sun, 24 Jan 2021 16:36:02 -0000</pubDate><guid>https://sourceforge.net5405b26142576b71ca9832e444945da80d4bdcdd</guid></item></channel></rss>