P Switches (Switch Blocks or P-Switches) are switches that appear in the New Super Mario Bros. series, usually inside Brick Blocks or Question Blocks. They temporarily turn empty Brick Blocks into coins and vice versa. In some cases, they also make Blue Coins appear (also temporarily). If the player collects all the blue coins before they disappear, a clapping sound is heard.
Super Mario Bros. 3
P Switches first appear in Super Mario Bros. 3. They invert blocks to coins and coins to blocks, but they have a limited time.