if condition then begin print, 'statement 1a' print, 'statement 1b' print, 'statement 1c' endif
if condition then begin print, 'statement 1a' print, 'statement 1b' print, 'statement 1c' endif else begin print, 'statement 2a' print, 'statement 2b' print, 'statement 2c' endelse
The statements between a begin and an end are called a block of statements.
Blocks of statements can only be used within programs/functions/procedures, and cannot be used at the IDL prompt line.