How to Interrupt Scripts Based on Conditions

if false ; then exit 1 ; fi

or

if false ; then 
  exit 1  
fi

or

false & {                                                              
  echo "Error" ; exit 1                                           
}

If you write everything in one line don't forget the last semicolon:

false && { echo "Error" ; exit 1 ; }