Lotusscript string

How can icheck in lotusscript if an string is made of two words or one word?

I need it for a IF!

If (return value)

’ action for one

else

’ actions for two

end if

Subject: Lotusscript string

if your 2 words are separated by a blank use the fonction instr: to search the blank or not

ex:

if(instr(1, mystring, " ") > 0) then

’ 2 word

else

’ 1 word

endif