The snap shot below shows my player at a set of double doors - the background image should be double doors, but if the function "Blocked" is used the background defaults to the snowy road.
The function blocked below requires the player to have a key to unlock the door, if you have the variable set you can walk through and the image is shown, if blocked it does this..