Or operator (||)

Description:

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

Format:

result = expression1 || expression2;

Parameters:

expression1

An integer expression.

expression2

An integer expression.

Example:

integer i;

i = 5 || 12;
log "i = " + ToString(k);
i = 5 || 0;
log "i = " + ToString(k);

Output:

i = 1
i = 0





Go back to the Learning center:


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