Assign operator (=)

Description:

Assigns a value to a variable.

Format:

result = expression1;

Parameters:

expression1

An integer, float or string expression.

Example:

integer i;
integer j;
float k;
string s;

i = 5;
log "i = " + ToString(i);
i = j = 7;
log "i = " + ToString(i);
log "j = " + ToString(j);
k = 2.1;
log "k = " + ToString(k);

s = "something";
log "s = " + s;

Output:

i = 5
i = 7
j = 7
k = 2.1
s = something





Go back to the Learning center:


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