ListExists |
Top Previous Next |
×V4.0Ø
Syntax - If ListExists <ListName>
Description: This command is used inside of an IF statement to determine if the List specified exists. This command is useful in discovery of existing lists, which will help eliminate errors/extra code relating to:
Note: This command was introduced in EMUE V4 and will not work with previous versions.
Sample 1: The following IF statement will look for the existence of a List named "Name_Of_List", if found it will proceed with the rest of the script, if not found it will go into debug mode. If ListExists Name_Of_List Then LogLine "List found, it does exist. Proceeding to ListFound" Call ListFound Else LogLine "List not found, it does not exist. Please advise." Debug EndIf
Sample 2: The following IF statement will look for the existence of a List named "Name_Of_List", if found it will GoTo Label ListFound then proceed with the rest of the script, if not found it will go onto the next line of code. If ListExists Name_Of_List GoTo ListFound
Sample 3: The following IF statement will look for the existence of a List named "Name_Of_List", if found it will GoTo Label ListFound then proceed with the rest of the script, if not found it will go onto the next line of code. If ListExists Name_Of_List Then If EndOfList Name_Of_List Then GetListCount Count_In_List Else GoTo EndIf Esle
EndIf
See Also:
|