AI distance check in behavior tree

Hello,

I’m having an issue in my behavior tree where the AI doesn’t seem to accept the results of the distance check to go down the correct branch.

Here’s a picture of the behavior tree and the settings for the distance greater than condition:

And here’s a picture of the behavior tree and settings for the distance less than condition:

And finally here’s a picture of the range check service:

Now, the range check works fine, it prints desired values and doesn’t seem to have any issue. However, the AI always goes to the right branch, never to the left, no matter the distance to the player.

Any ideas? This is just a modified version of the UE quickstart AI with some additions. The “DistanceToPlayer” blackboard key is exposed and as you see I have set blackboard value as int, which corresponds to the blackboard key DistanceToPlayer. Is there some connection there I am missing perhaps?