Flash Actionscript代码中的逻辑错误
我的代码中有以下逻辑Flash Actionscript代码中的逻辑错误,flash,actionscript,Flash,Actionscript,我的代码中有以下逻辑 if((leftCombo.getSelectedIndex() !> rightCombo.getSelectedIndex())&&(rightCombo.getSelectedIndex() !< leftCombo.getSelectedIndex()) 谢谢没有!>和应该不大于?如果是这种情况,只需使用=然后(即不大于等于小于或等于) 还请注意,如果是这种情况,那么您可以去掉其中一种情况,即您将检查a=a,其中两种情况中的一种是完全冗
if((leftCombo.getSelectedIndex() !> rightCombo.getSelectedIndex())&&(rightCombo.getSelectedIndex() !< leftCombo.getSelectedIndex())
谢谢没有
!>代码>和代码运算符。你期望他们是什么?是代码!>代码>应该不大于?如果是这种情况,只需使用=
然后(即不大于等于小于或等于)
还请注意,如果是这种情况,那么您可以去掉其中一种情况,即您将检查a=a
,其中两种情况中的一种是完全冗余的。!>和!<不是有效的运算符
这很容易从错误跟踪中看出:
Syntax error: expecting rightparen before not.
如果在无效令牌(表示“不大于”)旁边找到not运算符(!),则应使用=
Syntax error: expecting rightparen before not.