Instr function vbscript Instr function vbscript Adohr (TechnicalUser) (OP) 27 Oct 17 13:52 Regarding Instr function: Is it possible to verify that a number is > or < a particular value? for example, If InStr(1, str1, str2, 1) > 0 Then msgbox "PASS: str1 is greater than str2" End If RE: Instr function vbscript SkipVought (Programmer) 27 Oct 17 15:25 Hi, ??? Can you post an example? What are typical values of Str1 & Str2? Skip, Just traded in my OLD subtlety... for a NUance! RE: Instr function vbscript guitarzan (Programmer) 27 Oct 17 15:31 I'm confused by your question. The code you posted is correct, assuming that you are using InStr as intended (to see if str2 can be found inside str1). Or are you saying that str1 and str2 are numbers, and you want to do a numeric comparison on them???