16.02.2014 Views

Download - SoftMaker

Download - SoftMaker

Download - SoftMaker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Conditional text<br />

TextMaker also allows you to work with conditional expressions, using the function<br />

IF. By this means you can, for example, use “conditional text” in your documents.<br />

A typical case: You have an address database with a field called GENDER, and the<br />

record for each person contains either an “M” for male or an “F” for female in that<br />

field, indicating the person’s gender. Using the following IF expression, you could<br />

have TextMaker form a salutation according to gender:<br />

IF (GENDER="M" ; "Dear Madam" ; "Dear Sir")<br />

If you use this calculation in a form letter, TextMaker looks at each data record to<br />

see if the GENDER field contains an “M”. If it does, TextMaker outputs “Dear<br />

Sir”, as the replacement for the formula given above; otherwise, it outputs “Dear<br />

Madam”.<br />

Simple calculations with the press of a button<br />

There is an alternative to the command Insert > Calculation described in the<br />

previous sections: the command Edit > Evaluate.<br />

The difference:<br />

The command Insert > Calculation is suitable for calculations of any complexity<br />

using variables, etc.<br />

The command Edit > Evaluate is suitable only for more simple calculations, but it<br />

is much easier to handle: You enter and select a formula directly in the text, invoke<br />

Edit > Evaluate and immediately see the result in the text.<br />

An example:<br />

1. Type “The total is: 90+55+220”.<br />

2. Select “90+55+220”.<br />

3. Invoke the command Edit > Evaluate or press the (F8) key.<br />

4. The formula “90+55+220” is calculated and the result is inserted in the text.<br />

It doesn’t get any easier or faster: select a calculation and simply press (F8) to have<br />

it calculated.<br />

370 Calculations in the text Manual TextMaker

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!