See which direction on axis character is moving

Hi, I am working on a project using a 2D sprite character in a 3d Environment.
I have manged to set up animations for walking left and right by flipping the imagine, as well as seperate animations for when the character is jumping and falling. I have made animations for when the sprite is walking towards and away from the camera ( camera is fixed) but I cannot find a way to measure which direction on the axis the character is walking. I can get the velocity on the axis but using the select animation by bool node, it always defaults to the True animation. Any help appreciated!