If Statements with Empty Values

Results 1 to 2 of 2

Thread: If Statements with Empty Values

  1. #1
    Join Date
    Dec 1969

    Default If Statements with Empty Values

    I have a page where I pull in two possible string variables that are passed from the previous page. However it&#039s one or the other, not both and since it can be either variable I need to know if there is a way to construct an IF statement that will check to see if one is blank and if it is run the part of the page that uses the other variable. Something like<BR><BR>If XValue = &#039Nothing&#039 Then<BR> Print YValue<BR><BR>Any help would be awesome. Thanks.

  2. #2
    kkr Guest

    Default RE: If Statements with Empty Values

    Read your strings into a variable<BR>myvar1 = trim(request.queryString("prevVar1"))<BR>if myvar1 = "" then<BR> statement<BR>end if

Posting Permissions

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