Help with Wall Jumping Mechanics

Code

if can_wall_jump and Input.is_action_just_pressed("jump") and raycast.rotation == 90:
	velocity = Vector2(wall_jump_pushback + 10, jump_force - 100)
	print(velocity.x)
	
	
if can_wall_jump and Input.is_action_just_pressed("jump") and raycast.rotation == -90:
	velocity = Vector2(-wall_jump_pushback - 10, jump_force - 100)
	print(velocity.x)

Question

Hi! I’m working on getting this code to work for a wall-jumping mechanic. I’m hoping I can get it to where you can consistently hop off of walls back and forth in alternating directions ala Mario 64. This is my first time posting and I’m very new to this engine and game development in general so any critiques are welcome. Let me know if there is any other info needed here.