Substraction operator (-)

Description:

Subtracts the value of one expression from another or provides unary negation of a single expression.

Format:

result = expression1 - expression2;
result = -expression1;

Parameters:

expression1

An integer or float expression.

expression2

An integer expression if expression1 is an integer expression, a float expression if expression1 is a float expression.

Example:

integer i;

i = 5 - 3;
log "i = " + ToString(i);
i = - 3;
log "i = " + ToString(i);

Output:

i = 2
i = -3





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap