Hello, I would like to know how to add a number to the right of the value of a variable and update this variable with the new value.
example at the start my variable is empty, when I click on 1 my variable goes to 1 when I click on 2 my variable goes to 12 then I click on 5 and my variable goes to 125
Thank you perfect, I also had to remove null in the display because otherwise it would appear in front of the numbers. small question do you have an idea how to remove the last digit of the variable
thanks in advance
Assuming code is a string (a consequence of clicking the buttons), you can use the substring formatter to get the string from position 0 to the length of code minus 1 (to exclude the last character). If -1 doesn’t work try -2