WakeOnLidAction helps prevent your computer from accidently waking up when being transported. It's helpful when you have a MacBook or MacBook Pro which has some sort of "insomnia".
WakeOnLidAction uses a terminal command to change operation mode of the Lid opening action.
The command uses
sudo pmset -a lidwake 1 or
0. If you have any questions about pmset try looking in the manpage of this command. (
man pmset inside Terminal.app)
Have fun with it!