Compressed if-statement