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?
|