## `genident` -- create an unused identifier

#### Introduction

`genident(``)` creates an identifier not used before in the current session.

#### Call(s)

`genident()`
`genident(S)`

#### Parameters

`S` | - | a character string

#### Returns

an identifier.

#### Related Functions

`delete`, `hold`

#### Details

- `genident(``)` creates an identifier with a name of the form `Xi`, where `i` is a positive integer. It is guaranteed that the returned identifier has not been used before in the current MuPAD session.

- If a string `S` is given as argument, then `genident` returns an identifier with a name of the form `Si`, where `i` is a positive integer.

- The returned identifier does not have a value.

- `genident` is a function of the system kernel.

#### Example 1

We create three new identifiers. The second identifier has a different prefix:

    >> genident(), genident("Y"), genident()

                                    X1, Y1, X2

In the next example, we assign a value to the identifier `X4`. Then the next two calls to `genident` skip the name `X4`:

    >> X4 := 5:
       genident(), genident()

                                      X3, X5

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000