Inserting Text based of an Equation Result

E

Expando1

Word 2003

I've created an equation: { = {Text11 } - {Text12} }
Works beautifully.

Now I want to insert a boilderplate text conditional on the value of that
equation, so I've written: { IF { { = {Text11 } - {Text12} } <=25 "blah"
"goody" } }
Meaning if the value of that equation is less than/equal to 25, insert the
text "blah" otherwise insert the text "goody"
Doesn't work at all; I get a blank line. Any tips?
 
J

Jay Freedman

Expando1 said:
Word 2003

I've created an equation: { = {Text11 } - {Text12} }
Works beautifully.

Now I want to insert a boilderplate text conditional on the value of
that equation, so I've written: { IF { { = {Text11 } - {Text12} }
<=25 "blah" "goody" } }
Meaning if the value of that equation is less than/equal to 25,
insert the text "blah" otherwise insert the text "goody"
Doesn't work at all; I get a blank line. Any tips?

If that's an exact transcription of the field, you have one pair of field
braces too many. You also need a space between the <= operator and the 25
value. It should look like this:

{ IF { = {Text11} - {Text12} } <= 25 "blah" "goody" }

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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