Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I would like to set a variable in expression :
Expression :
sum({$<Round={'6'}>} Points)
instead of 6 the variable should be : vLast
vLast = Max({$<Played={'1'}>} Round)
I put it in a script (also tried in Variable overview)
SET vLast = Max({$<Played={'1'}>} Round).
but when I put
sum({$<Round={vLast}>} Points)
the expression is not working.
Separately expressions sum({$<Round={'6'}>} Points) and Max({$<Played={'1'}>} Round) are working.
Can somebody have any idea ?
Best thanks in advanced,
Hi,
The main issue with your variable is you're passing integer as strings using double quote.
If you remove the double quote from you integer your variables should work.
SET vLast = Max({$<Played={1}>} Round);
//Max({$<Played={1}>} Round) this is from variable overview
This works
sum({<Round={'$(=$(vLast))'}>}Points)
Thank you all !!