# 3.6.4.4 CheckMargins

Checks to see if the variables Top, Left, Right, Bottom, xGap, and yGap are initialized. If they are not initialized, it initializes them to the values 10, 15, 10, 15, 5, and 5 respectively. CheckMargins is intended to be executed just prior to executing the ArrangeLayers macro.

## Definition:

Def CheckMargins {CheckVar Top 10;
CheckVar Left 15;
CheckVar Right 10;
CheckVar Bottom 15;
CheckVar xGap 5;
CheckVar yGap 5;
};

## Example:

This script separately initializes the variables Left and Bottom to 10, initializes the variables Top, Bottom, xGap, and yGap to their default values described above, and then executes the ArrangeLayers macro.

Left=10;
Bottom=10;
CheckMargins;
ArrangeLayers 4 3;