Linux Scripting IF Else problem

This is a discussion on Linux Scripting IF Else problem within the Linux Programming forums, part of the Platform Specific Boards category; Hi,
here is my code it keeps giving me an error line 10 syntax error near 'then'
Code:
[
if[ ...