Strona 1 z 1
[Flash MX] Operatory
: czw lut 05, 2004 12:11 am
autor: one_eddie
Jakie sa operatory porownania stringow w Flash MX?
Re: [Flash MX] Operatory
: czw lut 05, 2004 1:22 am
autor: Kamil Kierzkowski
takie same jak innych zmiennych
<, >, <=, >=, ==, !=
Re: [Flash MX] Operatory
: czw lut 05, 2004 12:55 pm
autor: one_eddie
nie wiem dlaczego, ale kiedy uzywam operatora == dla stringow zamiast eq to cos jest nie tak?
Re: [Flash MX] Operatory
: czw lut 05, 2004 3:50 pm
autor: Kamil Kierzkowski
Kod: Zaznacz cały
x = "ok"; y = "nie ok";
trace(x == y); // false
trace(x != y); // true
chociaż w helpie przy "string operators" rzeczywiście są wymienione tylko >, >=, <, <= i +
ale w innym miejscu jest:
Equality operators
You can use the equality (==) operator to determine whether the values or identities of two operands are equal. This comparison returns a Boolean (true or false) value. If the operands are strings, numbers, or Boolean values, they are compared by value.
Re: [Flash MX] Operatory
: czw lut 05, 2004 5:25 pm
autor: one_eddie
Hmm.
Czyli EQ to jakas pozostalosc po starej wersji flasha?
Re: [Flash MX] Operatory
: czw lut 05, 2004 7:58 pm
autor: Kamil Kierzkowski
eq (equal — string specific)
Availability
Flash Player 4. This operator was deprecated in Flash 5 in favor of the == (equality) operator.
poczytaj trochę helpa
Re: [Flash MX] Operatory
: czw lut 05, 2004 10:23 pm
autor: one_eddie
ok dzieki.