well... the description of the requirement is clear as mud it might be clear to You , but to get reasonable replies, you will have to do a better job describing it
cheers enrico When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser, so that I am sure that the information requested can be reached with a very small effort
Why not just do a quick test and find out for yourself? Since we don't know what you mean by your terms (such as = "7digit" or = "10digit" -- is this comparing to the actual literal? is it supposed to be shorthand for a much longer comparison? is it supposed to be some magic that determines whether the variable meets to condition without any code to ensure that it does? or something else entirely?), there is no way we can tell you what your code would do.