i am having trouble with if statements.
this is my code.
func _input(event):
if myvariable: 1 <-- this has a STANDALONE EXPRESSION warning on it and i cant figure out why.
if event.is_action_pressed("spacebar"):
$label.text = "Good job."
i want the spacebar input to be sensed only when myvariable is 1.
it is sensing even is my variable = 0.
someone pls help!!