And operator (&&)

Description:

Performs a logical AND on two numeric expressions.
The returned value is 1 if both expressions do not evaluate to zero, 0 otherwise.

Format:

result = expression1 && expression2;

Parameters:

expression1

An integer expression.

expression2

An integer expression.

Example:

integer i;
integer j;
integer k;

i = 5;
j = 12;
k = i && j;
log "k = " + ToString(k);
k = i && (j - 12);
log "k = " + ToString(k);

Output:

k = 1
k = 0





Go back to the Learning center:


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