Forum Moderators: open

Message Too Old, No Replies

Less than and Greater than inside if statement

         

McIntyre

5:52 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



I'm having trouble with the "<" thing. I want function goo to occur if text1.value is less than 20, but this does not work.

if (text1.value == <20) { goo() }

Edouard_H

6:04 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



if (text1.value < 20) { goo() } should work for less than twenty.

<= would be equal to or less than 20, => equal to or greater than 20 and so forth.

McIntyre

6:06 pm on Apr 13, 2003 (gmt 0)

10+ Year Member



Thanks.