1. Kanarie Question

Tommy,

It seems for var = "", that {var=*:}Var: '{var}'{:var} prints something! Is
it checking for the existence of "var," or if var actually has a non-null
value (the latter being the expected behavior)?

I don't deny that I might be doing something wrong. :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » topic index » view message » categorize

2. Re: Kanarie Question

cklester wrote:
> Tommy,
> 
> It seems for var = "", that {var=*:}Var: '{var}'{:var} prints something! Is
> it checking for the existence of "var," or if var actually has a non-null
> value (the latter being the expected behavior)?
> 
> I don't deny that I might be doing something wrong. :)

You're not doing something wrong. KTS 1.7 is checking for the existence of
the field, and doesn't look at the value. I've uploaded 1.7b, where this bug
is fixed: a field where the value is an empty string, will no longer be
recognized as a valid field for {var=*:}

--
The Internet combines the excitement of typing 
with the reliability of anonymous hearsay.

tommy online: http://users.telenet.be/tommycarlier
tommy.blog: http://tommycarlier.blogspot.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: Kanarie Question

Tommy Carlier wrote:
> cklester wrote:
> > It seems for var = "", that {var=*:}Var: '{var}'{:var} prints something! Is
> > it checking for the existence of "var," or if var actually has a non-null
> > value (the latter being the expected behavior)?
> You're not doing something wrong. KTS 1.7 is checking for the existence of
> the field, and doesn't look at the value. I've uploaded 1.7b, where this bug
> is fixed: a field where the value is an empty string, will no longer be
> recognized as a valid field for {var=*:}

Righteous!!

Thanks Tommy. :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu