Condition

The Condition function is part of the Trigger class.

It returns the current state of the condition that triggers the function.

This is primarily used when you're triggering on both types of edge (ie. the function is being called both when the condition becomes true and the condition becomes false).