Flash Lite 1.x ActionScript 语言参考 |
|
|
|
| Flash Lite 运算符 > gt(字符串大于) | |||
Flash Lite 1.0。
expression1gtexpression2
expression1、expression2 数字、字符串或变量。
运算符(比较);比较 expression1 的字符串表示形式和 expression2 的字符串表示形式。如果 expression1 大于 expression2,则返回值为 true;否则,返回值为 false。字符串按字母顺序进行比较;数字优先于所有字母,所有大写字母优先于小写字母。
以下示例显示结果 true 和 false:
animals = "cats";
breeds = 7;
trace ("persons" gt "people"); // 输出:1(true)
trace ("cats" gt "cattle"); // 输出:0(false)
trace (animals gt "cats"); // 输出:0(false)
trace (animals gt "Cats"); // 输出:1(true)
trace (breeds gt "5"); // 输出:1(true)
trace (breeds gt 7); // 输出:0(false)
|
|
|
|