Stringing dlg.AsqQuestion()'s in Scripts

Encase anyone else was wondering, I am slightly excited to confirm that the prompts like ask question helpers in scripts act as I had hoped and so should allow more easier implementation of longer more complex interactions without the need for stringing many automation command rules.

function test1(){
	var first_question = dlg.AskQuestion('Test1','OK=OK,CANCEL=CANCEL');
	var seccond_question = "";
	if(first_question=='OK'){
		seccond_question = dlg.AskQuestion('Are you Sure? (1st Prompt = '+first_question+')','OK=CONFIRMED,NO=CANCELED');
	}else{
		seccond_question = dlg.AskQuestion('OK, That was cancelled','OK=CANCELED');
	}
	return seccond_question
}
3 Likes