3.7.2 Example of coding

integer intvar1;
string Caption;
string Stringvar1, Stringvar2;
...
...
AIT_LogMessage("SAMPLE FUNCTION CALL");  // Function call
if(AIT_FocusWindow("Installable-Setup","#32770"))
       // Return value of the function is used in the expression.
  AIT_LogMessage("INSIDE Installable Software SETUP");  
       // Executed
  AIT_PlayKey("{Enter}");
endif;
       // Check for the abnormal end of the called function
Caption = "Installable Software";
intvar1    = AIT_GetSubStr(Stringvar1, Stringvar2, 50);
                                       // intvar1 is 0.
if(!intvar1)
          AIT_LogMessage(AIT_GetErrorText(AIT_GetLastError()));
endif;