cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Compare Sharepoint dropdown Value against string

So My current is something along the lines of

if(
body('Pulls_out_Current_Item')?['WasanS_x002f_P_x003f_']?['Value'] = "Standard",
"DTS Standard",
"D&T Procedure"
)
 
I can't seem to find a function that properly compares strings though and this way isn't working
 
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

I figured it out on my own

couple things, one when using strings to compare against make sure you're using '' instead of "" also use the equals() function to compare the strings.

 

this is what I came up with

 

if(equals('Standard',variables('SorP')),'DTS Standard','D&T Procedure')

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I figured it out on my own

couple things, one when using strings to compare against make sure you're using '' instead of "" also use the equals() function to compare the strings.

 

this is what I came up with

 

if(equals('Standard',variables('SorP')),'DTS Standard','D&T Procedure')

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,859)