>>>>> "chris" == chris  <[EMAIL PROTECTED]> writes:

    chris> if left($result,3) = "500" Then Do whatever Else Blah Blah
    chris> Blah End If

if (substr($result,0,3) == 500) { do(stuff); } else { do(more_stuff); }

Note the arguments to substr are the start position (0 - the first
digit) and the range (three digits), and note the == to make a
comparison rather than an assignment.

Hope this helps,

- Chris.
-- 
$a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a
         "In the beginning there was nothing, which exploded."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to