That is what I am doing now but it isn't working. I get an "undefined" exception and then I tried to used parseFloat so I could add the two integers but I get a "NaN" exception. Would it be easier if the player score field in the database collection was a string rather than an integer?
This is my code I am using now:
var player1CurrScore = Appery('player1Score_lbl').text();
var player1NewScore = currTurnScore + player1CurrScore;
Appery('player1Score_lbl').text(player1NewScore);
I also tried:
var player1CurrScore = Appery('player1Score_lbl').text();
var player1CurrentScore = parseFloat(player1CurrScore);
var player1NewScore = currTurnScore + player1CurrentScore;
Appery('player1Score_lbl').text(player1NewScore);
I am implementing all of this in a function that is being called on a button click where everything else in the button click function is working properly. Just having issues with this one. 