If statement?

Results 1 to 3 of 3

Thread: If statement?

  1. #1
    Join Date
    Dec 1969

    Default If statement?

    Hello,<BR>I&#039;m trying to use this code:<BR><BR>If Round(ut,0) &#062; "100" then<BR>response.write "over"<BR>end if<BR><BR>Round(ut,0) is = to 80<BR>and i want it to show "over" only if the Round(ut,0) = more then<BR>100 but it doesn&#039;t, and it still shows up every time.<BR>could some one please show me what i&#039;m doing wrong here?<BR><BR>thanks in advance for your time!

  2. #2
    Join Date
    Dec 1969

    Default Check your variable types

    Make sure you&#039;re comparing two numbers, and not a string that happens to be numeric. For example...<BR><BR>5 = 5<BR>"5" != 5<BR><BR>Get it?

  3. #3
    Join Date
    Dec 1969

    Default RE: If statement?

    You are trying to compare a number to a string; take the quotes out:<BR>If Round(ut,0) &#062; 100 then<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