"Use of unassigned local variable 'state'"

How and where do I assign this variable?

Google isn’t helping me at all
Thanks for any advice. Sorry if it’s a dumb question

private enum MovementState { idle, running, jumping, falling }

private void UpdateAnimationState()
    {
MovementState state;

        if (rb.velocity.y > .1f)
        {
         state = MovementState.jumping; 
        }
        else if (rb.velocity.y > -.1f)
        {
            state = MovementState.falling;
        }

        animator.SetInteger("state", (int)state);
    }

That error means that there’s a possibility that state is unassigned. If it fails both conditions, it will have no state. You can solve this by having a default state at the beginning, or just have a last else statement setting it to the default.

Ok thank you, worked