Tip: if (true) runThisCode(“!”);

This is a great tip that works in may languages.

When using an if () statement you can drop the {brackets} if your only running one line of code! Try it for yourself. Copy and past this code into Flash

if (true) trace("holy crap!");

Works great and keeps your code clean. But it won’t work with else {}. As I mentioned before, this technique is supported by many languages.

No comments yet.

Leave a Reply

If you are human, count objects:
Enable this image please
I see:
- +
- +
- +
Ironclad CAPTCHA (Security Stronghold)