CubeExists
Description:
Checks if a cube exists on the server
Syntax:
CubeExists(CubeName);
Arguments:
CubeName - The name of the cube which you want to find
Return Type:
1 - If cube exists on the server
0 - if it doesn't
Example:
If(CubeExists('SalesPlan') = 0);
CubeCreate('SalesPlan');
EndIf;
This code will check if a cube exists on a server, and if it doesn't, creates it