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 ?
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
190 | |
57 | |
43 | |
36 | |
34 |
User | Count |
---|---|
270 | |
78 | |
75 | |
74 | |
67 |