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