Log in

View Full Version : Hi i can't get < and > to work



RusinaRange
11-17-2007, 12:36 PM
Hi

I have a problem using < > if i use them it says that theyre not valid have they been replaced with something???

PwNZoRNooB
11-17-2007, 12:45 PM
Post a piece of the script, I didn't get what you were meaning.

King of Knives
11-17-2007, 01:03 PM
Correct way to use

if SomeNumber >= 10 then ...
and
if SomeNumber <= 10 then ...
---

WRONG:
if SomeNumber => 10 then ...
and
if SomeNumber =< 10 then ...
-----

It is VERY important to position "<" and ">" on the right side of "=".

-Knives

RusinaRange
11-17-2007, 01:25 PM
so i can't just pot if i > 10 then... ?

fORCE_wORKS
11-17-2007, 01:40 PM
if (x < 5) and (x > 1) then
if(i <> 4) then
if(i > 6) then
these will work

rogeruk
11-17-2007, 01:50 PM
Hi

I have a problem using < > if i use them it says that theyre not valid have they been replaced with something???

They all work.

if x>1 then
if x<1 then
if x<>1 then
if x>=1 then
if x<=1 then