Re: Empty and logical expressions

2012-11-09 Thread Robert Sneidar
Empty is a memory location containing nothing. It is not a value. It is the absence of a value. Null is not the absence of a value it is in fact ascii 0, represented by . An empty string would not even be that. Bob On Nov 8, 2012, at 11:34 AM, Ralph DiMola wrote: > Empty is a value t

Re: Empty and logical expressions

2012-11-09 Thread Robert Sneidar
Yes because null = ascii 0. "0" = ascii 48! Emptystring is less than ascii 48. (Nothing is always less than something) Emptystring is therefore also less than ascii 0. (by the same token and for the same reason) It all makes sense when you boil it down. Bob On Nov 8, 2012, at 11:34 AM, Ralph

Re: Empty and logical expressions

2012-11-08 Thread Mark Schonewille
Hi Ralph, You're welcome. There are still quite a few problems with the message box. It is a very useful tool, but shouldn't be trusted. It is a shame that problems like these occasionally cause frustrations and take a lot of the developer's time. -- Best regards, Mark Schonewille Economy-x-

RE: Empty and logical expressions

2012-11-08 Thread Ralph DiMola
Subject: Re: Empty and logical expressions Hi Ralph, I tried it and I get **. on mouseUp TestItems 1,  ,2 end mouseUp command TestItems svar1 , svar2 , svar3 put "*" & item 1 of svar2 & "*" --> "**" end TestItems Which version of Liv

Re: Empty and logical expressions

2012-11-08 Thread Mark Schonewille
Hi Ralph, I tried it and I get **. on mouseUp TestItems 1, ,2 end mouseUp command TestItems svar1 , svar2 , svar3 put "*" & item 1 of svar2 & "*" --> "**" end TestItems Which version of LiveCode do you use? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software E

RE: Empty and logical expressions

2012-11-08 Thread Ralph DiMola
info.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Schonewille Sent: Thursday, November 08, 2012 4:40 PM To: How to use LiveCode Subject: Re: Empty and logical expressions Hi Ralph, In addition to your list: (empty < NULL) ==&g

Re: Empty and logical expressions

2012-11-08 Thread Mark Schonewille
Hi Ralph, In addition to your list: (empty < NULL) ==> true :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ

RE: Empty and logical expressions

2012-11-08 Thread Ralph DiMola
ed. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Mark Schonewille Sent: Thursday, November 08, 2012 4:25 PM To: How to use LiveCode Subject: Re: Empty and

Re: Empty and logical expressions

2012-11-08 Thread Mark Schonewille
Hi Ralph, Empty is a value too, but I wouldn't know how to evaluate it. Perhaps empty evaluates to NULL internally, which would give the same result: NULL < 0 is also true. Actually, NULL is less than any other value. Empty < 0 has been true since the beginning of HyperCard. -- Best regards,

Re: Empty and logical expressions

2012-11-08 Thread dunbarx
To: 'How to use LiveCode' Sent: Thu, Nov 8, 2012 4:04 pm Subject: Empty and logical expressions I just ran down a bug because. (empty<0) evaluates to true. I would have thought empty is only equal to empty(or "") and any other logical test would be false. Is this com

Empty and logical expressions

2012-11-08 Thread Ralph DiMola
I just ran down a bug because. (empty<0) evaluates to true. I would have thought empty is only equal to empty(or "") and any other logical test would be false. Is this common knowledge or did I miss something in the docs? Ralph DiMola IT Director Evergreen Information Services rdim...@everg

Re: Logical Expressions

2011-06-06 Thread Van Brollini
thanks, didi not know that Van - Start Original Message - Sent: Mon, 6 Jun 2011 01:39:45 -0700 From: Dick Kriesel To: How to use LiveCode Subject: Re: Logical Expressions > Now that you've made your code work, you can consider making it shorter and > faster. > > Live

Re: Logical Expressions

2011-06-06 Thread Dick Kriesel
> stupid mistake. was not referencing cell. pos_range should be > tTester[x]["pos_range"] > works right now. > thanks. > > - Start Original Message - > Sent: Mon, 6 Jun 2011 08:21:18 +0100 > From: John Dixon > To: > Subject: RE: Logical Expressio

Re: Logical Expressions

2011-06-06 Thread Van Brollini
stupid mistake. was not referencing cell. pos_range should be tTester[x]["pos_range"] works right now. thanks. - Start Original Message - Sent: Mon, 6 Jun 2011 08:21:18 +0100 From: John Dixon To: Subject: RE: Logical Expressions > > > Does this work for you...

RE: Logical Expressions

2011-06-06 Thread John Dixon
Does this work for you... shedding the outer brackets ? if (gUSL <= pos_vrange) AND (gUSL >= neg_vrange) then > What is the best way to do multiple logical comparisons and get them to work? > > For example > > if ((gUSL <= pos_vrange) AND (gUSL >= neg_vrange)) then >get

Logical Expressions

2011-06-05 Thread Van Brollini
What is the best way to do multiple logical comparisons and get them to work? For example if ((gUSL <= pos_vrange) AND (gUSL >= neg_vrange)) then get TRUE put it into tTester[x]["rng_check"] else get FALSE put it into tTes