some logic problems

Results 1 to 2 of 2

Thread: some logic problems

  1. #1
    Join Date
    Dec 1969

    Default some logic problems

    hi,<BR><BR>if I have some coding like this:<BR><BR>iq1 = Request.Form("q1") <BR>iq2 = Request.Form("q2")<BR>iq3 = Request.Form("q3")<BR><BR>then, I want to say:<BR>if (iq1=iq2=iq3= "no") then // "no" is input from radiobutton<BR>response.write(str1)<BR><BR>but this doesn&#039;t work.<BR>I cannot find any AND logic for this in my asp book.<BR>I also tried to use (&) or (&&) but it still didn&#039;t work<BR><BR>Is there any way for that?<BR><BR>Thanks<BR> <BR><BR><BR> <BR><BR>

  2. #2
    Dan Evans Guest

    Default RE: some logic problems

    Not very elegant but you could use<BR><BR>if a = b and b = c and c = "no" then ...<BR><BR>-Dan Evans

Posting Permissions

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