nth()

Takes a list and an integer index into the list. Returns a copy of the corresponding nth list item unless that item is a list itself. If the nth item is a list, then a pointer to that list is returned-not a copy. Returns a NULL if the item number exceeds the list length.

Syntax:

nth(n, list);

where

n is an integer greater than or equal to 0; represents position of item in list to retrieve.

list is the list of items.

Example:
decl sixth;
sixth=nth(5, list(0, 1, 2, 3, 4, 5, 6, 7, 8));
// returns the number 5 (6th position)

Download Example File:

The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.

Get File Permissions
Get File Time Stamp
Get Registry Value

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources