previousAction()
Last updated 4/07/2024
Example One
The following code returns to the previously selected action.
Return to the previous selected action
function PreviousAction(five: Five, context: any, result: FiveError) : FiveError {
five.previousAction();
return five.success(result);
}
Return to the previous selected action
function PreviousAction(five, context, result) : {
five.previousAction();
return five.success(result);
}
Example Two
The following code returns to the third previously selected action using the optional
num
parameter.
Return to the third previous selected action
function PreviousAction(five: Five, context: any, result: FiveError) : FiveError {
five.previousAction(3);
return five.success(result);
}
Return to the third previous selected action
function PreviousAction(five, context, result) : {
five.previousAction(3);
return five.success(result);
}