/pyjs/tests/test041.js

http://pyjamas.googlecode.com/ · JavaScript · 16 lines · 14 code · 2 blank · 0 comment · 6 complexity · bccf17fb3b4e26ead5e936af0c162e74 MD5 · raw file

  1. function test() {
  2. if (bar.__contains__(foo)) {
  3. do_something();
  4. }
  5. if (!bar.__contains__(foo)) {
  6. do_something_else();
  7. }
  8. if (foo || bar) {
  9. good();
  10. }
  11. if (foo && bar) {
  12. bad();
  13. }
  14. }