problem with if condition

Hi, I'm writing a bash script and i have a condition that goes

if [ "$i" = "END"]
then
     break
fi

but, when i go to run it, i come across this

 line 10: [: missing `]'

where line 10 is the if [ "$i" = "END"]
I don't know what's going on :frowning:

if [ "$i" = "END"]

Seems you're missing a space before ]

if [ "$i" = "END" ]
1 Like

And i am the biggest doofus to ever walk this planet , thank you :slight_smile: