if statement question.

Results 1 to 2 of 2

Thread: if statement question.

  1. #1
    Join Date
    Dec 1969

    Default if statement question.

    &#060;input type="checkbox" name="cb" value="&#060;%=count%&#062;"&#062;<BR><BR>cbs = Request("cb") <BR>&#039; *IF* at least one checkbox checked, *THEN* proceed! <BR>If ("" & cbs) &#060;&#062; "" Then ......<BR><BR>Hi, i was wondering why is the if statement concatenating the "" & cbs to see if it has a value or not??? I dont understand that logic? <BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Unnecessary

    the request object will ALWAYS return a string (empty or otherwise) so you do not need the ""<BR><BR><BR>in cases when you MAY get a Null from something then you can concatinate the "" to do a string comparison<BR><BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts