Condition inside Flow not returning TRUE

On page load, a flow runs to check if the key in the url param exists in the database.
image

If uuid does not exist, user goes to hell. But here condition does not do its filtering as expected.

How do I use condition within flow?

<script is="dmx-flow" id="flow1" type="text/dmx-flow" autorun>[
  {
    serverConnect: {
      url: "dmxConnect/api/Admin/checkAccessCode.php",
      site: "ProjectX",
      params: {key: "{{query.key}}"},
      name: "scGetAccessCode",
      output: true
    }
  },
  {
    wait: {delay: 500}
  },
  {
    condition: {
      if: "{{!scGetAccessCode.data.qryStoredUUID.uuid}}",
      then: {
        steps: {
          run: {action: "{{goTo.goto('/invalid-invite')}}"}
        }
      }
    }
  }
]</script>
Community Page
Last updated: