Or a switch for little easier on the eye.
Switch(
ThisItem.Random,
"Screen1",Navigate(Screen1, Fade),
"Screen2",Navigate(Screen2, Fade),
"Screen3",Navigate(Screen3, Fade),
"Screen4",Navigate(Screen4, Fade)
)
Really annoying we can't just put the variable straight into the Navigate though. Another use case, I have a Middle-Man screen hop where control property variables (colour, size ect) are defined on splash. Some of these are taken from a "User Settings" table. When user changes settings, it hops back to splash to re-do all the property variables then hops back to the screen the user was last on.
I had hoped I could just define a global variable containing the current screen's name on the OnClick of the Settings button (eg Set(gloSettingsReturn, Parent.Name)), then simply have Navigate(gloSettingsReturn) on my splash page, but nooo. Now I need a big fat Switch.