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

Multiple If Statement

Hello All, 

I am trying to do some deep linking in my app where if the user clicks on an English link(with a parameter called "ID"), it takes them to a specific screen in the English version of my form.  If they click on the Spanish link (with a parameter called "SPID", it should take them to a specific screen in the spanish version of the form.  

 

My StartScreen property is:

 

If(
Value(Param("ID"))<>0, CloseContacts,Welcome);

If
(Value(Param("SPID"))<>0, CloseContacts_Spanish,'Welcome_1-SPANISH'
)

 

But obviously, the system will not compute this.  What is the best syntax to use in this scenario?

 

Thank you so much as always.

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @xrxr031 ,

Try > 0 rather than <> 0, but you are going to have to send another parameter value if you want the Spanish Welcome screen

If(
   Value(Param("ID")) > 0, 
   CloseContacts,
   Value(Param("SPID")) > 0, 
   CloseContacts_Spanish,
   Welcome
)

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.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @xrxr031 ,

Try > 0 rather than <> 0, but you are going to have to send another parameter value if you want the Spanish Welcome screen

If(
   Value(Param("ID")) > 0, 
   CloseContacts,
   Value(Param("SPID")) > 0, 
   CloseContacts_Spanish,
   Welcome
)

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.

Visit my blog Practical Power Apps

xrxr031
Helper II
Helper II

My apologies for the delay.  Thank you so much for your help.  This worked for me.

Have a great day.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,918)