Skip to main content
Participating Frequently
October 29, 2020
Question

TEB's not incrementing variable

  • October 29, 2020
  • 1 reply
  • 470 views

captivate 19 11.5.1.499

 

I have 3 TEBs on one slide, each with user validation, and show button deselected. On success I say increment a variable by 1 (with continue playing the project deselected and shortcut to none).

 

I have a custom submit button with an action saying if all are true, show correct text and next button, else hide (these elements Which are hidden on stage)

My problem is that the TEBs don't seem to be retaining any information, or maybe the success is not incrementing the variable assigned to each TEB (i made 3 unique). I did it this way to avoid an action on enter of slide which increments the variables with the correct entry in the TEBs. Is my strategy wrong?

This topic has been closed for replies.

1 reply

Lilybiri
Legend
October 29, 2020

FYI there is a new update. Most recent version for windows is 11.5.5.553.

 

This is very confusing... What are those variables? Probably not the associated variable of the TEBs. Why are you not using those variables? They have as value the Entry in the TEB. Maybe I misunderstand, but you could clarify. If you incremented a counter with each correct answer, could understand. But you are using 3 variables...

Participating Frequently
October 29, 2020

Yes I have 3  unique variables with a value of zero, so in the TEB properties I'm saying - on success increment by 1 - and then the submit button runs the script in the screenshot above.  the screen below shows the increment I've placed in each TEB and it's associated variable:

perhaps I'm misunderstanding "success" for each TEB, each one has user validation with the correct answer provided, so I thought if they put in the correct answer, success would increment, and then the submit script would react off those new values (being 1 for each). 
thanks,

Lilybiri
Legend
October 29, 2020

If you insist on this over-complicated workflow, use at least the Assign command instead of the Increment command. 

Normally with one Submit button I would have used the If with checking the content of the TEB variable for each TEB to the correct value. You are using 6 variables instead of 3.

IF v_TEB1 is equal to ... correct answer 1 AND

     v_TEB2 is equal to ... correct answer 2 AND

     v_TEB3 is equal to... correct answer 3

Show Grp...

 

No need for ELSE since the objects in the group (please group instead of two commands) is hidden.

 

Or alternative would have been to add one user variable, v_counter, which you increment with each Success action. The IF would then check if v_counter is equal to 3.