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
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
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-
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
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
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
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
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
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,
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
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
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
> 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
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...
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
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
16 matches
Mail list logo