if statement

Results 1 to 2 of 2

Thread: if statement

  1. #1
    Join Date
    Dec 1969

    Default if statement

    I have an if statementa nd it always defaults to the else :<BR><BR>ToOrder = cstr(productset("OrderStatus"))<BR>Response.write ToOrder<BR> <BR>if ToOrder = "yes" then<BR> Response.write " Click on the link below"<BR>else<BR> Response.write ToOrder<BR> Response.write "No need to order"<BR>end if<BR><BR>When written to the screen I get:<BR><BR><BR>yes yes No need to order <BR><BR>Can anyone help<BR>

  2. #2
    Join Date
    Dec 1969

    Default Leading or trailing spaces maybe?

    Try this:<BR><BR>ToOrder = Trim(cstr(productset("OrderStatus")))<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