Help with using input values with variables along with if, else if code

you mean have the handleInput() function within a draw() function?
so
function draw()
{
function handleInput()
{
}
}