Scott:
> So you are saying that if the first char of the string is a number
No! There is no number.
Don't think about numbers. :)
Both sides are text in your comparison.
> it uses the ascii value of the first char?
Always! Because both sides are text.
Two text strings. No numbers.
LC compare
Hello Curry,
I’m still puzzled. So you are saying that if the first char of the string is a
number then it uses the number but if the first char is not a number then it
uses the ascii value of the first char? It seems like there is more to it than
that. Obviously we wouldn’t expect“9foo”
Scott:
> I’m still a little unclear about exactly what is going on here.
Because you are NOT comparing numbers.
You are comparing (like sorting) text.
That usually means: the FIRST CHAR of each string.
(The ASCII/ANSI/etc values of those chars.)
> put “7.foo” < 9 -- returns “true”
Because "7
I just uploaded a stack called “Infection" to Sample Stacks which might be a
little fun (in a scary way) for some of you. It’s a Monte Carlo simulation
wherein a number of individuals randomly moving about in an enclosed space, are
infected by a single randomly infected individual. I welcome any
On 12/24/21 1:08 PM, Pi Digital via use-livecode wrote:
My son and I have been working on a physical Train Sim World controller which
is basically the whole dashboard from a Class 365. It uses an Arduino board and
a digital serial shunt to pick up all the buttons, switches and sliders and
con
I’m still a little unclear about exactly what is going on here.
put “foo” < 9 -- returns “false”
put “foo” > 9 -- returns “true”
put “9foo” < 9 -- returns “false”
put “9foo” > 9 -- returns “true”
put “9.foo” < 9 -- returns “false”
put “7.foo” < 9 -- returns “true”
put “77.foo” < 9 -- returns “tr
> I?ve encountered a problem with the third-party LiveCode product
> chartsEngine now reporting that LiveCode < version 10.0.0 (dp 1) > is not
a
> high enough version number. (AnimationEngine was reporting a similar error
> which I was able to fix since the scripts are open.) ChartsEngine is,
how
Scott:
> why "9.6.6-rc-1” evaluates as not less than 5
> but "10.0.0-dp-1” evaluates to less than 5.
That's the tricky thing about dotted versions;
easy to forget and set up a text comparison:
"9" > "5"
"1" < "5"
Once you have two dots, or an rc/dp, it's a string.
They seem to compare perfect
I have not been modding tmc2 but I do still use some of those slick objects. (I
have modded a few of the gauges in Scott's older tmgauges project. :- )
> On Dec 27, 2021, at 8:24 AM, Mike Kerner via use-livecode
> wrote:
>
> tmc2 still gives me better ui's than native widgets do.
> i have bee
I mistyped Björnke’s name; it is “Björnke von Gierke"
> On Dec 28, 2021, at 2:27 AM, scott--- via use-livecode
> wrote:
>
>
> I’ve encountered a problem with the third-party LiveCode product chartsEngine
> now reporting that LiveCode < version 10.0.0 (dp 1) > is not a high enough
> version
I’ve encountered a problem with the third-party LiveCode product chartsEngine
now reporting that LiveCode < version 10.0.0 (dp 1) > is not a high enough
version number. (AnimationEngine was reporting a similar error which I was able
to fix since the scripts are open.) ChartsEngine is, however
11 matches
Mail list logo