Greater operator (>)

Description:

Performs a comparison between two integer or float expressions.
The returned value is 1 if first expressions is greater than second expression, 0 otherwise.

Format:

result = expression1 > expression2;

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 > 10);
if ( i == 1 )
    log "5 > 10";
else
    log "5 <= 10";
endif

i = (2.1 > 1.0);
if ( i == 1 )
    log "2.1 > 1.0";
else
    log "2.1 <= 1.0";
endif

i = (6 > 4);
if ( i == 1 )
    log "6 > 4";
else
    log "6 <= 4";
endif

Output:

5 <= 10
2.1 > 1.0
6 > 4





Go back to the Learning center:


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