ik heb deze testcase
flash geeft altijd "klopt" wat ik ook invoer..
wat wel werkt is:
Maar dan krijg ik 2x zo lange ifs.. en het is niet netjes.. Doe ik iets fout of is het niet mogelijk om bijvoorbeeld: 0<x<4 waarbij x=2 zo om te zetten in actionscript?
code:
1
2
3
4
5
6
7
8
| a = 0;
b = 300;
c = 200;
if (a<=b<c) {
trace("klopt");
} else {
trace("fout");
} |
flash geeft altijd "klopt" wat ik ook invoer..
wat wel werkt is:
code:
1
2
3
4
5
6
7
8
| a = 0;
b = 300;
c = 200;
if ((a<=b) && (b<c)) {
trace("klopt");
} else {
trace("fout");
} |
Maar dan krijg ik 2x zo lange ifs.. en het is niet netjes.. Doe ik iets fout of is het niet mogelijk om bijvoorbeeld: 0<x<4 waarbij x=2 zo om te zetten in actionscript?
Human Bobby