Jack
"Is this just here so we can associate which bracket goes with which" The indentation of brackets is to easily show what code is attached to the IF function.
Re the IF logic, reference to Nico`s site will show you that if the IF statement is met then all the code within the associated brackets will be executed. Also, you can nest IF statemnts for example
IF x <100
{
do this code
IF > 50
{
only do this code ie only when x > 50 but < 100
}
}