cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Patrick2
New Member

Seperation of Functions in Power Apps (Germany)

Hello,

im new in Power Apps and i would like to implement an if statement with three different conditions. It's written in the Fill-Function of a rectangle

If (stringOfTextfield = "string1",Green,

    stringOfTextfield = "string2",Red,

    stringOfTextfield = "string3",Yellow,

    Black)

If you read the PowerApps Documentation, it should work. Also every Tutorial explains it like this. Unfortunately it doesnt work. 

Are there different Functions seperators or can you tell me the correct way to do it ?

4 REPLIES 4
pontusofsweden
Resolver IV
Resolver IV

Hi @Patrick2 !

 

I think you need to have a nestled If statement. Try this:

If (stringOfTextfield = "string1",Green,If(stringOfTextfield = "string2",Red,If(stringOfTextfield = "string3",Yellow,Black)))

 

BR

Pontus

Helllo,

unfortunately your solution isn't working. Do i have to seperate the functions with a semikolon ?

 

Hi!

 

I think we are missing the "Text" property of the Text input. This exact formula is working for me so it should work for you 🙂

If (stringOfTextfield.Text = "string1",Green,If(stringOfTextfield.Text = "string2",Red,If(stringOfTextfield.Text = "string3",Yellow,Black)))

 

//Pontus 

Hi thank you for your help.

I had to change the Language-Settings in Chrome to US-English. The PowerApps in German are useing different Syntax. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (4,625)