A question about direction in variables

So you can store game data - player's direction in a variable. In the description it says corresponds to the numbers on the keypad. 
At first I thought that when the character faced up the variable stored 8 , when faced right the variable stored 6, when faced down the variable stored 2 and when faced left the variable stored 4. 

However , when I am testing my event, the variable has none of the above values.

Can someone help me with how the direction is stored in variables ?
Can you post a screenshot showing the event? It might be that the event is not running at all, or it's not running at the correct moment. The variable will only get the value of the direction the exact moment you used the Change Variables command, it doesn't dynamically check the direction of the player. So if you want to see the direction, you'd need to use Change Variables right before checking the variable.

PS: I've also just checked right now and it (the method I stated above) works fine.
Thanks, seems like I have stored them in the wrong variable. 
Sorry I should have checked better before posting for help...
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/a-question-about-direction-in-variables.40581/