Page flow condition syntax incorrect?

This isn’t working as expected,

any ideas?

This is not a good way to post your questions. You need to be more specific as to what the expected output is, and what you are seeing here.
“this isn’t working” has no meaning without context.

Here’s a speculation from the screenshot:
Your flow is set to auto load, and its trying to compare value from a server connect.
You need to wait for server connect to load before the flow is run.
So, disable auto run, and then on success dynamic event of the SC, run the flow.

1 Like

There should be quotes around the expression, not sure how you inserted it but for me they are added.

condition: {
  if: "{{content.serverconnect1.data.query[0].q1_value == 5}}",
  ...
}
1 Like

Thankyou both works as expected in that the correct alert box is displayed.

Patrick

There should be quotes around the expression, not sure how you inserted it but for me they are added.

I find inserting the function via the ‘no code’ route using the wizard unintuitive and confusing…
image
as the selected value, selected via the wizard is shown as above, i find adding a condition to it means the actual condition is outside the curly braces so editing the code directly is easier.
This seems a bit odd as it is meant to avoid editing the code in the first place.

I messed up by removing the quotes… thanks again

Just click on ‘Code’ in your screenshot above and you can edit it as you need. :slight_smile: