Shorthand version of record onCondition with no properties.