// Note: These tests implicitly depend on ints being truthy. // Return the first non-true argument. print false and 1; // out: false print true and 1; // out: 1 print 1 and 2 and false; // out: false // Return the last argument if all are true. print 1 and true; // out: true print 1 and 2 and 3; // out: 3 // Short-circuit at the first false argument. var a = "before"; var b = "before"; (a = true) and (b = false) and (a = "bad"); print a; // out: true print b; // out: false