Your script does not include the repetition number, so it default to 1. See the following example
Set Variable [$$bonus; Value:3 * 4]
 is the repetition number
retpetition number is the position in the variable.
I get an error message in the data viewer in FileMaker Advanced when I try to use GetRepetition with a variable instead of a field in FMP12. I don't think you can use a repeating variable in place of a repeating field in that function. The other syntax that you are already using to reference a repetition of the variable works just fine though. Use:
$variableTest  in place of GetRepetition($variableTest ; 4 )
Sure it does, $cntr is my next repetition number
if you look at the screen shot, you will see that $VariableTest has 10 repetitions all w/ different values.
but when you display the results for both the variable and the global field, variable one is only value from 1st repetition.
Phil, what you suggested does work
instead of getrepetition i use $variable [x] it works great.
"Repeating Field Value: " & $VariableTest  & "¶" &
"Global Field Value: " & GetRepetition ( Test::FieldName ; 4 )
It's consistent with the info in the help file on getRepetition. There's no mention of being able to substitute a repeating variable for a repeating field. Doeing so would see logical and the help file doesn't say you can't do that, it just doesn't mention variables at all--probably because the function and this help entry were both created many years before variables became a FileMaker Feature.