pub fn not<Marker>(condition: impl Condition<Marker>) -> impl Condition<()>
Expand description

Generates a Condition that inverses the result of passed one.

Examples

use bevy_ecs::prelude::*;
// Building a new schedule/app...
let mut sched = Schedule::default();
sched.add_system(
        // This system will never run.
        my_system.run_if(not(always_true))
    )
    // ...

// A condition that always returns true.
fn always_true() -> bool {
   true
}