condition power state

condition power state Structure: Conditional on the computer's power source state.

condition power state structure
state power state
filter power source filter: optional

Description

A power source may be using the mains power, battery power, be off-line, or be in an unknown state. This condition tests the current power sources and can be used to determine if the computer is connected to the mains power, or to a battery.

Be aware that a computer can have multiple sources of power. Use the filter to restrict the power sources to test.

Only one power source needs to match this condition in order to return true.

Fields

state

Current state of at least one power source.

filter

Power sources to monitor.

Back to condition power state.