14.10.2013 Views

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

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.

C-14 <strong>FileMaker</strong> <strong>Pro</strong> User’s <strong>Guide</strong><br />

Logical functions<br />

?<br />

Syntax Definition<br />

Radians (number) Converts degrees (π/180 radians) in number to<br />

radians. Parameters for trigonometric functions<br />

must be in radians—use this function to convert<br />

values from degrees to radians within a formula.<br />

Sin (number) Returns the sine of an angle expressed in radians<br />

Tan (number) Returns the tangent of the angle (in radians) in<br />

number. Tangents for values of 90 degrees (π/2<br />

radians) or multiples are undefined (infinite).<br />

Choose <strong>FileMaker</strong> Help Index from the or Help menu, and then type:<br />

E trigonometric functions<br />

Syntax Definition<br />

Case (test1, result1 [, test2, result2,<br />

default result]...)<br />

Choose (test, result0 [, result1,<br />

result2]...)<br />

Evaluates test1 to produce a result. When test1 is<br />

true (a nonzero value), returns result1; when test2 is<br />

true, returns result 2, and so on. When no test is true,<br />

returns an empty (null) value, or the default result<br />

you supply.<br />

Evaluates test to produce an index number used to<br />

choose a result. When index is 0, returns result0;<br />

when index is 1, returns result1, and so on. When<br />

there’s no corresponding result, returns an empty<br />

(null) result.<br />

If (test, result one, result two) Evaluates test to return a true or false result. When<br />

test is true (1), returns result one; when test is false<br />

(0), returns result two. Test must return either a<br />

numeric or Boolean result. (See the example below.)<br />

IsEmpty (field) Returns true (1) when field is empty (null);<br />

otherwise returns false (0)<br />

IsValid (field) Returns false (0) when field is missing from the file<br />

or when field contains an invalid value; otherwise<br />

returns true (1). For example, if a field in a related<br />

file is deleted, references to that field in the master<br />

file are invalid. See chapter 10, “Using data from<br />

related files.”

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

Saved successfully!

Ooh no, something went wrong!