# : relational operator

The : (colon) relational operator concatenates
strings in an assignment statement or, when the : displays at the end of a `print` or `crt` expression, suppresses the automatic CR/LF combination, thus holding
the current print/display position. It is also used as a token within
the input @ statement.

## Syntax

```
exp : exp
print exp{:}
input @(x,y): var...
crt exp{:}
```

## Example(s)

Variable `z` is
assigned the result of the string expression, `"Amount due = "` concatenated to the value of the variable `amount`.

```
z = "Amount due = ":amount
print z
```
The string `"Enter command "` is printed
and the cursor is left at the end of the string.

```
print "Enter command ":
```

## See also

- [@() function](https://d3codex.com/pickbasic-flashbasic/at-parenthesis-function/)
- [Assignment](https://d3codex.com/pickbasic-flashbasic/assignment/)
- [cat relational operator](https://d3codex.com/pickbasic-flashbasic/cat-relational-operator/)
- [crt statement](https://d3codex.com/pickbasic-flashbasic/crt-statement/)
- [input statement](https://d3codex.com/pickbasic-flashbasic/input-statement/)
- [print statement](https://d3codex.com/pickbasic-flashbasic/print-statement/)
- [[] reserved characters](https://d3codex.com/pickbasic-flashbasic/brackets-reserved-characters/)
- [String expressions](https://d3codex.com/pickbasic-flashbasic/string-expressions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/colon-relational-operator/ - part of the D3Codex reference.
