Error when preforming IF condition check

Hi,

When I try to perform IF to see if any records have been returned by a database query I get an error.

Query

Setup Repeat on the database query

Setup Condition to check if any results returned

Setup Set values based on IF Condition results
image

When I run the page I get the following error.

The only thing I can pick out of that it the highlighted message.
"Message": "Can not convert Array to Boolean."

IIS and ASP.NET environment.

Any help would be great.

Thanks.

Why are you repeating the query?
You can directly check with the condition step added after the query …

query_logincontrol
condition (query_logincontrol.length > 0)

  • then
  • else
2 Likes

Hi @Teodor,

I am just trying to follow this guide.


Ray.

I believe the screenshot is wrong,sorry about that.
There should not be a repeat - as you can see on the next screenshots. I will change the wrong screenshot.