Event-catching constructs:
This will execute mycode at the moment when x equals 2