limiting the trigger button

hi guys how do you limit the trigger of a button.?? for example you have a 50 question and all the question are the then the congratulation… something like that.

if you want to limit a trigger question you can do it something like this i guess

declare a trigger like a boolean and a counter

bool FiftyQuestionDone = false;
int FiftyCounter = 0;

Then after declaring a boolean

put this code on your button:

FiftyCount++;

if(FiftyCount == 50){
   //Congratulation here
}

I hope you got it . :slight_smile: