Boolean Expressions in Fillin

M

Mr K

Hi


In the following Mail-Merge expression, can
the "Switches" contain a Boolean expressions?

{ FILLIN ["Prompt "] [Switches ] }

Example:

"ABC or DEF"

If the above answer is yes, What form does the equeation
(ABC or DEF)take?

Thank you,
Mr K
 
M

macropod

Hi,

You could use an IF field to add a boolean expression to
the default text for the FILLIN field, thus:
{FILLIN Test \d {IF {BkMrk}= "Test" "Hello" "Goodbye"}}
where the default text changes according to whether the
value of a bookmark (here named BkMrk) equals "Test".

Presumably you could do the same for the \o switch also,
eg:
{FILLIN Test {IF {Bkmrk}= "Test" "\o" " "}}
but I don't have a mege document to test this with.

Cheers
 
M

Mr K

Sorry, but that is not what I'm looking for.

I'd like to enter:

Jan 4 2004
and have the program print data for that date.

or

Jan 4 2004 "OR" Apr 4 2004
and have the program print data for both dates.

or perhaps:

Jan 4 2004 "OR" Feb 11 2004 "OR" Mar 12 2004
and have the program print info for all 3 days.

Using:
{ SKIPIF { MERGEFIELD Date } <> "{FILLIN "Enter Date"
\o } }
Rest of the program is below this and works fine for one
date. What would the Boolean expression look like that
would replace "Enter date" to print data for more than
one date?
-----Original Message-----
Hi,

You could use an IF field to add a boolean expression to
the default text for the FILLIN field, thus:
{FILLIN Test \d {IF {BkMrk}= "Test" "Hello" "Goodbye"}}
where the default text changes according to whether the
value of a bookmark (here named BkMrk) equals "Test".

Presumably you could do the same for the \o switch also,
eg:
{FILLIN Test {IF {Bkmrk}= "Test" "\o" " "}}
but I don't have a mege document to test this with.

Cheers

-----Original Message-----
Hi


In the following Mail-Merge expression, can
the "Switches" contain a Boolean expressions?

{ FILLIN ["Prompt "] [Switches ] }

Example:

"ABC or DEF"

If the above answer is yes, What form does the equeation
(ABC or DEF)take?

Thank you,
Mr K


.
.
 
M

macropod

Hi,

For what you want to do, an ASK field might be more
appropriate, since it automatically sets a bookmark.
Otherwise, you need to bookmark the output of the FILLIN
field. You then use the value of the bookmark to trigger
the required outputs. For example, this 'simple' version
varies its output according to whether the date entered in
an ASK field is today's date:
{QUOTE{ASK BkMrk "What Date, in dd/mm/yyyy format please?"
\d {DATE \@ dd/MM/yyyy}}{IF {Bkmrk \@ dd/MM/yyyy}= {DATE
\@ dd/MM/yyyy} "You entered today's date" "You did not
enter today's date"}}

Depending on your requirements, you could combine IF, AND
and OR fields to control the output, or you nest the IF
fields.

Hope this gives you something to build on.

Cheers


-----Original Message-----
Sorry, but that is not what I'm looking for.

I'd like to enter:

Jan 4 2004
and have the program print data for that date.

or

Jan 4 2004 "OR" Apr 4 2004
and have the program print data for both dates.

or perhaps:

Jan 4 2004 "OR" Feb 11 2004 "OR" Mar 12 2004
and have the program print info for all 3 days.

Using:
{ SKIPIF { MERGEFIELD Date } <> "{FILLIN "Enter Date"
\o } }
Rest of the program is below this and works fine for one
date. What would the Boolean expression look like that
would replace "Enter date" to print data for more than
one date?
-----Original Message-----
Hi,

You could use an IF field to add a boolean expression to
the default text for the FILLIN field, thus:
{FILLIN Test \d {IF {BkMrk}= "Test" "Hello" "Goodbye"}}
where the default text changes according to whether the
value of a bookmark (here named BkMrk) equals "Test".

Presumably you could do the same for the \o switch also,
eg:
{FILLIN Test {IF {Bkmrk}= "Test" "\o" " "}}
but I don't have a mege document to test this with.

Cheers

-----Original Message-----
Hi


In the following Mail-Merge expression, can
the "Switches" contain a Boolean expressions?

{ FILLIN ["Prompt "] [Switches ] }

Example:

"ABC or DEF"

If the above answer is yes, What form does the equeation
(ABC or DEF)take?

Thank you,
Mr K


.
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top