Create electric

Added logical statement