Add operator (+)

Description:

Adds two numeric expressions or concatenate two strings.

Format:

result = expression1 + expression2;

Parameters:

expression1

An integer, float or string expression.

expression2

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

Example:

integer i;
string s;

i = 5 + 3;
log "i = " + ToString(i);
s = "first string " + "second string " + "third string";
log "s = " + s;

Output:

i = 8
s = first string second string third string





Go back to the Learning center:


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