Re: contains operator

2004-02-25 Thread hershrev
So thanks every body .
this what we got ..
1) if  not (x contains y) then --
2) if x contains y is false then --
thanks
On Wednesday, February 25, 2004, at 02:23 AM, [EMAIL PROTECTED] wrote:
sez [EMAIL PROTECTED]:
Hi, how do I use the contains operator in a negative way meaning 
 "does
not contain" or " contains not" ?
   If you can use a standard "contains" operator at all, inverting 
said operator is (or at least should be) fairly trivial. Like so:

  if not (This contains That) then

   Hope this helps...
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Cubist
sez [EMAIL PROTECTED]:
>Hi, how do I use the contains operator in a negative way meaning  "does 
>not contain" or " contains not" ?
   If you can use a standard "contains" operator at all, inverting said operator is 
(or at least should be) fairly trivial. Like so:

  if not (This contains That) then

   Hope this helps...
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Thomas McGrath III
Actually since your are saying c is NOT among the CHARS of "abc"  Then 
it is false. C is among the Chars of abc but the expression asks if it 
is Not among and that is false cause it is.

FWIW

tom

On Feb 24, 2004, at 8:26 PM, Jeanne A. E. DeVoto wrote:

That's not quite right. If you check
  c is not among the chars of "abc"
it will evaluate to true, because you are testing chars (not words). 
In this case, "c" is one of the characters in "abc", so the expression 
evaluates to true.

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Thomas McGrath III
Haaa Haaa

You really got  me there..

That was really good..

thanks
tom
On Feb 24, 2004, at 7:50 PM, Dar Scott wrote:
On Tuesday, February 24, 2004, at 05:37 PM, hershrev wrote:

Hi, how do I use the contains operator in a negative way meaning  
"does not contain" or " contains not" ?
  if not (x contains y) then beep
  if y is not in x then beep
  if x contains y, not so then beep  -- just kidding
Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread hershrev
On Tuesday, February 24, 2004, at 08:26 PM, Jeanne A. E. DeVoto wrote:

At 7:50 PM -0500 2/24/2004, hershrev wrote:
 "c" is not among the chars of "ab"
From the doc. of Rev.
"Hello" is among the words of "Hello World" -- evaluates to true
"Hell" is among the words of "Hello World" -- evaluates to false
which means even if "c" is among "abc" it'll return false.
That's not quite right. If you check
  c is not among the chars of "abc"
it will evaluate to true, because you are testing chars (not words). 
In this case, "c" is one of the characters in "abc", so the expression 
evaluates to true.

The examples from the docs test words, not chars. "Hell" is not one of 
the words in "Hello World", so the example evaluates to false. 
However, if you check whether "H" is among the chars of "Hello World", 
it will evaluate to true.
Yes , sounds right.
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Dar Scott
On Tuesday, February 24, 2004, at 06:00 PM, Richard Gaskin wrote:

I've been seduced by the otherwise orthogonal grace of Transcript.

I wonder why "does not contain" is not implemented?
Good point.  It is the only predicate operator that does not have a 
negative syntax.

By predicate, I mean an operator that typically is used on other than 
true/false and returns true/false.  Relations are good examples.  Uh, 
look at the logical operators in "Transcript Language Dictionary" and 
skip and/or/not.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Jeanne A. E. DeVoto
At 7:50 PM -0500 2/24/2004, hershrev wrote:
 "c" is not among the chars of "ab"
From the doc. of Rev.
"Hello" is among the words of "Hello World" -- evaluates to true
"Hell" is among the words of "Hello World" -- evaluates to false
which means even if "c" is among "abc" it'll return false.
That's not quite right. If you check
  c is not among the chars of "abc"
it will evaluate to true, because you are testing chars (not words). 
In this case, "c" is one of the characters in "abc", so the 
expression evaluates to true.

The examples from the docs test words, not chars. "Hell" is not one 
of the words in "Hello World", so the example evaluates to false. 
However, if you check whether "H" is among the chars of "Hello 
World", it will evaluate to true.
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread hershrev
On Tuesday, February 24, 2004, at 08:00 PM, Richard Gaskin wrote:

hershrev wrote:

  if not (x contains y) then beep
This is the one.
Good catch.  Sorry to have led you astray.  I've been seduced by the 
otherwise orthogonal grace of Transcript.
As long as it works . A smile a day keeps the doctor away.
I wonder why "does not contain" is not implemented?
Me too.
hershrev
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread hershrev
On Tuesday, February 24, 2004, at 08:03 PM, Gardner, Joseph A wrote:

Hershrev,

I use something like this:

if myVar contains "sometext" is false then doSomeThing
Goood thinking,
hershrev
or

if myVar contains "sometext" is true then doSomeThingElse
is true I think is unnecessary.
This seems to work for me, but YMMV depending on how you're gonna use 
it.

joe.


Message: 10
Date: Tue, 24 Feb 2004 19:37:08 -0500
From: hershrev <[EMAIL PROTECTED]>
Subject: contains operator
Hi, how do I use the contains operator in a negative way meaning  
"does
not contain" or " contains not" ?
Thanks hershrev

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: contains operator

2004-02-24 Thread Gardner, Joseph A
Hershrev,

I use something like this:

if myVar contains "sometext" is false then doSomeThing

or

if myVar contains "sometext" is true then doSomeThingElse

This seems to work for me, but YMMV depending on how you're gonna use it.

joe.


> Message: 10
> Date: Tue, 24 Feb 2004 19:37:08 -0500
> From: hershrev <[EMAIL PROTECTED]>
> Subject: contains operator
> 
> Hi, how do I use the contains operator in a negative way meaning  "does 
> not contain" or " contains not" ?
> Thanks hershrev
> 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Richard Gaskin
hershrev wrote:

  if not (x contains y) then beep
This is the one.
Good catch.  Sorry to have led you astray.  I've been seduced by the 
otherwise orthogonal grace of Transcript.

I wonder why "does not contain" is not implemented?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread hershrev
On Tuesday, February 24, 2004, at 07:50 PM, Dar Scott wrote:

On Tuesday, February 24, 2004, at 05:37 PM, hershrev wrote:

Hi, how do I use the contains operator in a negative way meaning  
"does not contain" or " contains not" ?
  if not (x contains y) then beep
This is the one.
Your the person of the day.
Thanks.
  if y is not in x then beep
  if x contains y, not so then beep  -- just kidding
after a day's of work you deserve a little bit having a good time.
Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Scott Rossi
Recently, "hershrev"  wrote:

> you 
>> can use:
>> 
>>  "c" is not in "ab"
>> 
>> Or
>> 
>>  "c" is not among the chars of "ab"

> From the doc. of Rev.
> "Hello" is among the words of "Hello World" -- evaluates to true
> "Hell" is among the words of "Hello World" -- evaluates to false
> which means even if "c" is among "abc" it'll return false.

Note the use of "among the chars", not just "among".  You need to specify a
chunk type.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Pierre Sahores
Else, this works fine, too : if tMyVar contains "try it, it works!" is 
false then exit to top
--
Bien cordialement, Pierre Sahores

100, rue de Paris
F - 77140 Nemours
[EMAIL PROTECTED]

GSM:   +33 6 03 95 77 70
Pro:  +33 1 41 60 52 68
Dom:+33 1 64 45 05 33
Fax:  +33 1 64 45 05 33
Inspection académique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire "delta de productivité"
Le 25 févr. 04, à 01:38, Richard Gaskin a écrit :

hershrev wrote:

how do I use the contains operator in a negative way meaning  "does 
not contain"
if tMyVar does not contain "try it, it works!" then exit to top

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Dar Scott
On Tuesday, February 24, 2004, at 05:37 PM, hershrev wrote:

Hi, how do I use the contains operator in a negative way meaning  
"does not contain" or " contains not" ?
  if not (x contains y) then beep
  if y is not in x then beep
  if x contains y, not so then beep  -- just kidding
Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread hershrev
On Tuesday, February 24, 2004, at 07:45 PM, Scott Rossi wrote:

Recently, "hershrev"  wrote:

how do I use the contains operator in a negative way meaning  "does
not contain" or " contains not" ?
I don't know if there is a way to write a negative contain, but you 
can use:

 "c" is not in "ab"

Or

 "c" is not among the chars of "ab"
From the doc. of Rev.
"Hello" is among the words of "Hello World" -- evaluates to true
"Hell" is among the words of "Hello World" -- evaluates to false
which means even if "c" is among "abc" it'll return false.
Thanks.
Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Pierre Sahores
Just use "is not in"
--
Bien cordialement, Pierre Sahores
100, rue de Paris
F - 77140 Nemours
[EMAIL PROTECTED]

GSM:   +33 6 03 95 77 70
Pro:  +33 1 41 60 52 68
Dom:+33 1 64 45 05 33
Fax:  +33 1 64 45 05 33
Inspection académique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire "delta de productivité"
Le 25 févr. 04, à 01:37, hershrev a écrit :

Hi, how do I use the contains operator in a negative way meaning  
"does not contain" or " contains not" ?
Thanks hershrev

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Scott Rossi
Recently, "hershrev"  wrote:

> how do I use the contains operator in a negative way meaning  "does
> not contain" or " contains not" ?

I don't know if there is a way to write a negative contain, but you can use:

 "c" is not in "ab"

Or

 "c" is not among the chars of "ab"

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread hershrev
On Tuesday, February 24, 2004, at 07:38 PM, Richard Gaskin wrote:

hershrev wrote:

how do I use the contains operator in a negative way meaning  "does 
not contain"
if tMyVar does not contain "try it, it works!" then exit to top
I tried that previously, does not work .
I was thinking ; if myVar contains "a" then ---  comment else script, 
but to much involved.
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contains operator

2004-02-24 Thread Richard Gaskin
hershrev wrote:

how do I use the contains operator in a negative way meaning  "does 
not contain"
if tMyVar does not contain "try it, it works!" then exit to top

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution