View Single Post
  #2 (permalink)  
Old 07-01-2008, 04:14 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 551
Default

Hello,

Using 'If Variable' command, you can check if particular variable is blank. Text format of command would appear like this,

If $Phone$ Equal To "" Then
//Commands as per your requirement
End If

To check if particular variable has 10 digits or characters, please refer to attached task. Please copy VariableDigits.atmn under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

Before running this task,
I) Create variable, $Phone$ through Variable Manager.

To create variable please follow below mentioned steps,
1. Go to Tools->Variable Manager in Automation Anywhere.
2. Click on “Add New Variable”.
3. From "Type" dropdown, select "Value".
4. In “Name” field, enter “Phone”.
5. In “Value” field enter any value say '0'.
6. Press “Save”
7. Press “Ok”

II) Copy text or phone number from required file or page.

Hope that helps.
Attached Files
File Type: atmn VariableDigits.atmn (4.7 KB, 6 views)
Reply With Quote