help with jumping for side scroling game please

i want it so he cant only jump once because at the moment he can keep juping while in the air how do i make it so he can only jump once not keep jumping in the air
Game Editor discussion board
http://game-editor.com/forum/
if(jump == 1)
{
yelocity = - what you want;
jump = 0;
}
Jump = 1;