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

Condition not working as intended

Hi 

 

I have a 'get items' with a filter query.

I then initialise a variable to count the number of items that were collected after the filter.

I then have a condition whereby if there is only one result, update the list, if there is less, create an item.

 

However in the case that there is only one result... it chooses to create an item?

 

I'm very confused.

 

I've attached photos.

11.png

 

22.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Responsive Resident
Responsive Resident

@CameronTCD 

Since you are using it as a String and not an INT, put it in quotes.

 

"1"

2.jpg1.jpg

View solution in original post

1 REPLY 1
Highlighted
Responsive Resident
Responsive Resident

@CameronTCD 

Since you are using it as a String and not an INT, put it in quotes.

 

"1"

2.jpg1.jpg

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

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