1# and
2
3## Description
4Tests whether **all** of the actions in an array return true.
5
6Note: All actions in the array will be executed even if an action before the
7end returns false.  This ensures that actions with beneficial side-effects are
8always executed, such as a register read that clears latched fault bits.
9
10## Property Value
11Array of two or more [actions](action.md) to execute.
12
13## Return Value
14Returns true if **all** of the actions in the array returned true, otherwise
15returns false.
16
17## Example
18```
19{
20  "comments": [ "Check whether registers 0xA0 and 0xA1 both contain 0x00" ],
21  "and": [
22    { "i2c_compare_byte": { "register": "0xA0", "value": "0x00" } },
23    { "i2c_compare_byte": { "register": "0xA1", "value": "0x00" } }
24  ]
25}
26```
27