Thera are more Ways to do this.
If "Insert condition" THEN If "Insert condition" THEN 'insert code ENDIF ENDIF other way: If "Insert condition" THEN 'Insert Code ELSEIF "Insert condition" AND "Insert condition" THEN 'Insert Code ELSEIF "Insert condition" OR "Insert condition" THEN 'Insert Code ELSE 'Insert Code ENDIF