12.01.2014 Views

Software Manual Freedom EVOware Standard 2.3 Freedom ...

Software Manual Freedom EVOware Standard 2.3 Freedom ...

Software Manual Freedom EVOware Standard 2.3 Freedom ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14 - Advanced Programming Features for Scripts<br />

Variables and Expressions in Scripts<br />

Tab. 14-4 Commands that accept string variables (cont.)<br />

Icon Command Parameter name(s)<br />

Sub-Routine<br />

Path & Name<br />

User Prompt<br />

Text<br />

Worklist<br />

Worklist (Path and Name)<br />

Worklist Import<br />

Import Worklist and Generated <strong>Freedom</strong> <strong>EVOware</strong><br />

Worklist<br />

14.1.6 Mathematical Expressions<br />

In addition to using variables and constants, certain script commands also allow<br />

you to specify a mathematical expression (see 14.1.7 “Script Commands That<br />

Accept Numeric Variables and Expressions”, 14-12).<br />

An expression is constructed from floating point numbers, variables and<br />

operators. The following operators are available:<br />

Tab. 14-5 Expressions that can be used with variables<br />

Operator<br />

Function<br />

+ addition<br />

- subtraction<br />

* multiplication<br />

/ division<br />

% modulo division (division remainder)<br />

( ) parenthesis, used to specify the evaluation<br />

order<br />

Examples of valid expressions:<br />

volume<br />

volume + 10.5<br />

volume * 2<br />

volume + (samples * 2)<br />

3 + 4 * 5<br />

Spaces in expressions are ignored. Multiplication and division have precedence<br />

over addition and subtraction.<br />

Modulo division returns the remainder of a division as an integer.<br />

Examples: 13 % 8 = 5, 49 % 8 = 1<br />

If e.g. the number of samples in a pipetting operation is not an exact multiple of<br />

the number of tips you are using, modulo division can be used to calculate how<br />

many samples you need to pipette in the last cycle of a pipetting loop. Take care<br />

when using modulo division if one or both of the arguments are negative values.<br />

<strong>Freedom</strong> <strong>EVOware</strong> <strong>Software</strong> <strong>Manual</strong>, 393172, en, V<strong>2.3</strong> 14 - 11

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

Saved successfully!

Ooh no, something went wrong!