See I pasted the line which showing error ( parse error : error parsing expression, misplaced "and"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Darkfx100

This is the line

If Input.is_action_just_pressed("ui_accept"): and "cooldown <= 0"
:bust_in_silhouette: Reply From: Ertain

That’s incorrect GDScript. This may be the correct code:

 If Input.is_action_just_pressed("ui_accept") and cooldown <= 0: