Which formula should you use?

Posted by: Pdfprep Category: PL-100 Tags: , ,

You need to set the value for a global variable named RunningTotal to 5 and navigate to the previous screen named MainScreen.

Which formula should you use?
A . UpdateContext( { RunningTotal: 5 } ); Navigate( MainScreen,
ScreenTransition.Cover, RunningTotal );
B . If( Value(TextBox1.Text) >= 0, (Set( RunningTotal, 5);
Back();), Color.Green )
C . UpdateContext( { RunningTotal:5 } ); Back()
D . Set( RunningTotal, 5 ); Back();

Answer: D

Explanation:

You set the value of the global variable with the Set function. Set( MyVar, 1 ) sets the global variable MyVar to a value of 1.

Use the Back and Navigate function to change which screen is displayed.

Reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-variables

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-navigate

Leave a Reply

Your email address will not be published.