Hi guys, how can I convert this If into a switch?
If(
!IsBlank(
LookUp(
Dpi_dipendenti;
email=username_txt.Text && 'ruolo in app'="admin"
)
);
Navigate(
home_ADMIN;
ScreenTransition.Fade
);
Navigate(
home_operaio;
ScreenTransition.Fade
);
)
i know the structure of the switch but i don't think i need to use the lookup function to fetch the data