fix my code, might need change direction to transform basis?

func jump_logic(delta) → void:
Vector2 * Velocity.y
if Input.is_action _pressed(“jump”):
if_is_on_floor():
velocity.y = (abs(direction.x) * abs(direction.y)/2

Please describe what the code is supposed to do, what it does instead, and what errors (if any) are raised.

This doesn’t seem like valid GDscript to me.