# Problem with number variables

Hi all, the project i made includes a numberline which is divided into 10 equal parts. There are 4 numerical variables, two for each fraction (numerator and denominator). The student must fill in the 4 variables with the correct values. If he fills them up properly, a message box appears telling him if he did it correct or wrong. The problem is that: If he completes the second fraction correctly, the appropriate message appears. But if he completes the first fraction correctly, then the slide layer tells him that what he has completed it wrong.

I think, layers yes or no are not displayed correctly.

###### 7 Replies

Hi Spiros

working for me.  See Peek video - unless I misunderstand the issue.

Do you want them to try the first fraction and submit then the second and submit or do both before they click Submit?

I want to have one submit button for all the actions. Also i want the student, for example, to complete the first fraction and then click on submit button to see if the result is correct, then the second and so on. The student should be able to choose any fraction he wants in any order.

Do you have any suggestion?

Hi Spiros

it's not going to work the way it is set up because once 'control loses focus' meaning the user clicks the submit button for the first fraction, because the second fraction doesn't have values it will automatically mark it incorrect.

You may be able to do it in layers - will you only be showing those two fractions or are you intending to have more?

If it is possible with three or more fractions.

If i do it with layers, how can i do this? Creating layers with one number variable  in every layer?

I think it is not necessary to create additional layers for yes or no.

Hi Spiros

see if the attached file works for you.

I've renamed the number variables to make it easier to work with and also added a True/False variable for each fraction that will control which layer shows when one is completed.

Hope this helps.

Hi Wendy

The option you gave is very interesting. Thank you very much. I wonder if there is a way to display all the fractions in the same layer and the student be able to choose and complete  any of the fractions he wants.

Then you may need to create it as a pick one or pick many freeform slide.