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.

Some notes on comparisons<br />

When two text strings are compared with “=”, the result is “true” only when the<br />

strings are exactly the same and have the same length. The cases of letters are<br />

taken into account in this comparison.<br />

"Henry"="Henry"<br />

"Henry"="henry"<br />

"Henry"="Henry’s"<br />

is true.<br />

is false.<br />

is false.<br />

If you construct a complex comparison that has several “ands” and “ors”, you<br />

should always enclose the individual conditions in parentheses.<br />

Computational functions<br />

In TextMaker you can use the computational functions described below. The<br />

arguments required by the functions are always given in parentheses:<br />

n<br />

t<br />

d<br />

represents a number<br />

represents a text string<br />

represents a date<br />

So, for example, INT(n) is a function requiring a numeric argument. It can be a<br />

numeric constant or the numeric result of a calculation – for example, INT(3.14) or<br />

INT(1+SQRT(2)).<br />

Important: When several arguments are required, they must be separated from<br />

one another by semicolons (;).<br />

Function<br />

ABS(n)<br />

ASC(t)<br />

AT(t1;t2)<br />

Explanation<br />

Returns the absolute value of the numeric argument n, i.e.<br />

removes its sign – ABS(3) gives 3; ABS(-3) gives 3.<br />

Returns the numeric code of the character t in the character table<br />

– ASC("A") gives 65.<br />

Returns the position of the first occurrence of text string t2 in<br />

text string t1 as a numeric value –AT("London";"on") gives 2.<br />

376 Calculations in the text Manual TextMaker

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

Saved successfully!

Ooh no, something went wrong!