i wanted to ask if it's possible that i count a special letter or number for example:
"A:"
from a .xml file ? And write this as a Variable ?
For example:
foo.xml:
<questions>
<question>
<variante> A: variante1 </variante>
<variante> B: variante2 </variante>
</question>
<question>
<variante> A: variante1 </variante>
<variante> B: variante2 </variante>
</question>
<question>
<variante> A: variante1 </variante>
<variante> B: variante2 </variante>
</question>
</questions>
int counter = 3
Because i have three "A:"
I want to use the Variable for an solution sentence:.
syso("You have " + reachedPoints + "from " + counter + "Points");
Thanks for your help !