Topic: logical operators (1 of 5), Read 20 times
Conf: VEDIT Macro Language Support
From: Bernd Richert
Date: Friday, December 31, 2004 12:31 PM

I am completely new to Vedit, and consequently new to this forum.
So, I will have to place some stupid questions.
Here is the first one:

I have learned that && and || are logical operators AND and OR, as usual. But with Vedit:

TRUE && TRUE is 6, and
TRUE || TRUE is 7.

Is there any explanation?

Bernd

 


Topic: Re: logical operators (2 of 5), Read 21 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Friday, December 31, 2004 12:47 PM

At 12:32 PM 12/31/2004, you wrote:
>I have learned that && and || are logical operators AND and OR, as usual. But with Vedit:
>
>TRUE && TRUE is 6, and
>TRUE || TRUE is 7.
>
>Is there any explanation?

Hmmm. I don't know! Even stranger is that:

1 || 1 is 7.

Although this doesn't bother anything since 7 is "true", I will consider it a bug which we will fix.

Also, please welcome Bernd Richert (from Germany) to this Forum. He has occasionally used VEDIT in the past, but now expects to use it regularly and is learning the macro language. :-)

Ted.

 


Topic: Re: logical operators (5 of 5), Read 21 times
Conf: VEDIT Macro Language Support
From: Bernd Richert
Date: Sunday, January 02, 2005 08:10 AM

Ted,

this did bother me.
Have a look at something like this:

ri(11,BEGIN+(!im&!#11)*OVERWRITE)

...but you have already fixed it - fine.
I continue to be surprised about the friendly atmosphere and quick reaction here.

Happy new year to everybody

Bernd

 


Topic: logical operators (3 of 5), Read 24 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Saturday, January 01, 2005 06:01 AM

Hello Bernd!

Welcome here to this forum and to VEDIT!

Christian (from Germany too)


*** Happy new year 2005 ***
*** to all VEDIT users and makers (and everyone)! ***

 


Topic: Re: logical operators (4 of 5), Read 26 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Friday, December 31, 2004 05:32 PM

We have fixed the code to return "1" for "TRUE || TRUE". It will be in the next release (or beta).

Happy New Year everyone!

Ted.