aboutsummaryrefslogtreecommitdiff
path: root/doc/language/keyword/cpsc-keyword-and.7.md
blob: 7da90b768f9fcb26b30acd2b2dff2163567f38cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

% CPSC-KEYWORD-AND(7)

# NAME

cpsc-keyword-and - combine conditions with logical AND

# SYNOPSIS

```text
left AND right
```

# DESCRIPTION

Return BOOLEAN: true when both operands are true. Both operands must be BOOLEAN; numbers and characters are rejected. Both operands are evaluated; AND does not short-circuit. AND binds more tightly than OR and less tightly than comparisons. Use parentheses for clarity.

# EXAMPLE

```text
OUTPUT (3 > 2) AND (4 > 1)
```

# SEE ALSO

[cpsc-language-overview(7)](../cpsc-language-overview.7.md), [cpsc-keyword-or(7)](cpsc-keyword-or.7.md), [cpsc-keyword-not(7)](cpsc-keyword-not.7.md), [cpsc-keyword-if(7)](cpsc-keyword-if.7.md).