cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

If help

Hi,

 

I'm very new to this and trying to learn as I go along so any help would be much appreciated. 

 

I'm trying to create a next icon to take users to the required screen based on a device model.

 

I have tried this simple test to no avail - If(Model=M1,Navigate(Screen1)

 

I would also like to grow the statement to include different device models so thinking the statement with need to include Or?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: If help

Hi @dandandsan ,

You can use If

If(
   Model="M1",
   Navigate(Screen1),
   Model="M2",
   Navigate(Screen2),
   Model="M3",
   Navigate(Screen3)
)

or Switch

Switch
   Model
   "M1",
   Navigate(Screen1),
   "M2",
   Navigate(Screen2),
   "M3",
   Navigate(Screen3)
)

If Model was a text box, it be replaced by Model.Text

If a drop-down, Model.Value or Model.Result or Model.FieldName depending on how the drop-down was formed.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

2 REPLIES 2
Highlighted
Community Champion
Community Champion

Re: If help

Hi @dandandsan ,

You can use If

If(
   Model="M1",
   Navigate(Screen1),
   Model="M2",
   Navigate(Screen2),
   Model="M3",
   Navigate(Screen3)
)

or Switch

Switch
   Model
   "M1",
   Navigate(Screen1),
   "M2",
   Navigate(Screen2),
   "M3",
   Navigate(Screen3)
)

If Model was a text box, it be replaced by Model.Text

If a drop-down, Model.Value or Model.Result or Model.FieldName depending on how the drop-down was formed.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

Highlighted
Helper II
Helper II

Re: If help

@WarrenBelz 

 

Thank you very much, it works a treat.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (7,587)