Can't figure out how to wait for animation to finish

Godot Version

Godot 4.2.1 Stable

Question

I’m trying to do some 3D animation work, and I’m struggling to get the code to wait until the animation has ended.
I’ve tried:

if anim_player.current_animation_position <= anim_player.current_animation_length

Which doesn’t work, and I can’t figure out how to use the animation_finished signal as a general animation has finished function.

Any help would be appreciated. Thanks!

await anim_player.animation_finished

Just do whatever you want after an await? …