SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
IsEqual - Type mismatch

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
IsEqual - Type mismatch
Author Message
Reto



Joined: 14 Jan 2003
Posts: 16

Post IsEqual - Type mismatch Reply with quote

I want to verify if a string found_subdirs is empty:
IsEqual ( found_subdirs, "", is_empty )

If the string found_subdirs is empty TRUE is returned to is_empty.
If the string found_subdirs contains for example "abc,def,ghi" it returns
FALSE
If the string found_subdirs contains for example "1421101769832920620,1481017690952298520" an
error "Type mismatch" is returned. Why?

Fri Feb 21, 2003 2:38 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: IsEqual - Type mismatch Reply with quote

Since version 2.2 the script engine performns automatic data type conversions. When it sees a a value that contains only numbers periods and colons it automatically treats it as a number. If the second argument can not be casted tyo the same data type you get "Type mismatch" error. Please consider this as a feature.
A simple workaround for this is to prefix the string with some alpha character, for example

Concat "!", found_subdirs, found_subdirs_ex
IsEqual found_subdirs_ex, "!", is_empty

: I want to verify if a string found_subdirs is empty: IsEqual ( found_subdirs,
: "", is_empty )

: If the string found_subdirs is empty TRUE is returned to is_empty.
: If the string found_subdirs contains for example "abc,def,ghi" it
: returns
: FALSE
: If the string found_subdirs contains for example
: "1421101769832920620,1481017690952298520" an
: error "Type mismatch" is returned. Why?

Fri Feb 21, 2003 9:25 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.