If statement using double bracket notation