Question about bp nodes

I have this movment set up I cant seem to get my ai 2d sprite facing the right direction when walking he walks around fine but when i add a flip flop
to change his movement it only mirriors 1 movement left to right not up or down

here is what i have to make him move left to right ue4-question — ImgBB