Mason
16 years agoFrequent Contributor
[RESOLVED] Converting property from String to Int
I'm sure there is something obvious I'm missing (haven't done much GroovyScripting) however I'm curious as to why this code does not produce an output of '20' assuming that #pageIncrement property == 10.
def nextIncrement = (context.expand('${#pageIncrement}'))
log.info(nextIncrement)
nextIncrement.toInteger()
nextIncrement = nextIncrement + 10
log.info(nextIncrement)