I am trying to compare something as below in TestComplete
If UBound(gropBoxList) >= 0 Then
Log.Message("Total number of items found: " & (UBound(gropBoxList) + 1))
if UBound(gropBoxList) != 4 Then
Else
Log.Warning("No items found.")
End If
But, I am getting error Syntax error while lexing character "!"
Kindly advise