Is it possible in Niagara to get a bool for whether we're in the editor preview?

Sometimes it would be nice to have slightly different behavior in the Niagara preview vs in-game. For example, I have an emitter which only emits particles as the emitter moves through space, so it’s not emitting anything in the preview. I could fix this by adding a “Spawn Rate” component which has a positive rate in the preview, and 0 otherwise.