---
name: "getablexprnum"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/getablexprnum"
---

# getablexprnum(3)

gives a specified operand of an expression.

## NAME

getablexprnum - gives a specified operand of an expression.

## SYNOPSYS

```
#include "abl101.h"
chain_list ∗getablexprnum( Expr, Number )
  chain_list ∗Expr;
  int        Number;
```

## PARAMETERS

- *Expr*

  Expression.

- *Number*

  Operand number.

## DESCRIPTION

**getablexprnum** gives the operand *Number* of *Expr*.\

## RETURN VALUE

**getablexprnum** returns the operand *Number* of *Expr*.

## EXAMPLE

```
#include "abl101.h"
  chain_list ∗Expr;
  Expr = createablbinexpr( ABL_AND,
                           createablatom( "a" ),
                           createablatom( "b" ) );
  /* displays    b */
  viewablexpr( getablexprnum( Expr, 1 ), ABL_VIEW_VHDL );
```

## SEE ALSO

[**abl**(1)](/abl/1.md)
