RE: How does the "among" operator work? (Never mind!)

2000-01-07 Thread David Cramer

My apologies to the list. As they say, RTFM (or online Help). I just 
realized on reading farther down in the Help page on which the 
operators are described that the answer was there all along. Now I 
get it.

For example:

put "Fred" is among the items of "Adam,Fred,George"

returns true, as does:

put "Fred" is among the words of "Adam Fred George"

MetaCard is tres cool!

Regards,

David


At 1:41 AM -0600 1/8/00, David Cramer wrote:
>Here's a simple operator syntax question. The list of operators 
>shows "is among" and "is not among" as Order 7 operators, along with 
>"contains". I had assumed that usage would be something like:
>
>if "Fred" is among ("Adam","Fred","George") then doSomething
>
>
>But this doesn't work. What is the correct syntax?
>
>Regards,
>
>David
-- 
David Cramer, Process Innovation Evangelist  87-1313 Border Street
PBSC Computer Training Centres (an IBM company)  Winnipeg MB R3H 0X4
Corporate Office Research & Development  Canada

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: How does the "among" operator work?

2000-01-07 Thread Scott Raney

On Fri, 7 Jan 2000, David Cramer wrote:

> Here's a simple operator syntax question. The list of operators shows 
> "is among" and "is not among" as Order 7 operators, along with 
> "contains". I had assumed that usage would be something like:
> 
> if "Fred" is among ("Adam","Fred","George") then doSomething
> 
> 
> But this doesn't work. What is the correct syntax?

You have to specify a chunk type:
if "Fred" is among the items of "Adam,Fred,George" then doSomething
  Regards,
Scott

> Regards,
> 
> David
> -- 
> David Cramer, Process Innovation Evangelist  87-1313 Border Street
> PBSC Computer Training Centres (an IBM company)  Winnipeg MB R3H 0X4
> Corporate Office Research & Development  Canada
> 
> This is the MetaCard mailing list.
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> 


Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



How does the "among" operator work?

2000-01-07 Thread David Cramer

Here's a simple operator syntax question. The list of operators shows 
"is among" and "is not among" as Order 7 operators, along with 
"contains". I had assumed that usage would be something like:

if "Fred" is among ("Adam","Fred","George") then doSomething


But this doesn't work. What is the correct syntax?

Regards,

David
-- 
David Cramer, Process Innovation Evangelist  87-1313 Border Street
PBSC Computer Training Centres (an IBM company)  Winnipeg MB R3H 0X4
Corporate Office Research & Development  Canada

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm