≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Change built-in behaviours?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b]DouweDabbe[/b] wrote: this is an assignment and not a comparison: [code] this.rightKeyDown = down; [/code] this is a comparison (with a type conversion if need be): [code] if ( this.rightKeyDown == down) { // then do something } [/code] this is an exact js comparison without type conversion (and the recommended way of doing it): [code] if ( this.rightKeyDown === down) { // then do something } [/code] my offline machine said this code is buggy and I do not really know why or where the problem comes from: in NPP JSLInt says at "line 27" unexpected code expected a ")" rewriting to see below did not help: [code] if ( (this.leftKeyDown==true) || (this.rightKeyDown==true) || (this.upKeyDown==true) || (this.downKeyDown==true) ) { // then do something } [/code] CC scripting window says: syntax error: missing ")" after condition. so we are testing against a conmdition here, meaning: its in a for loop or a if statement, there isnt much more in the code. in NPP you can count all these "()" and "[]" and "{}" 's. no problem there. Also these "if ()" and "for ()" statements are properly set up. I like coding but js drives me nuts, sorry. Its a tiny fragment of code, but it cost huge amounts of time. After a while you can slam an extension together in a day, mostly derived from something similar anyway. But then debugging, it can take days , weeks even because of the crappy tools. So I am very interested into other peoples debugging practices. anyways enough other things to work on ...making a bird in Blender 3d[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact