ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: getStructMemberFromIndex

getStructMemberFromIndex(str, n) returns the value of the nth member of the structure str.

Example:

createStruct("firstName", "Andreas", "lastName", "Rejbrand", "yearOfBirth", 1987, "IQ", ∞)

firstName: Andreas
lastName: Rejbrand
yearOfBirth: 1987
IQ: ∞

getStructMemberFromIndex(ans, 2) = "Rejbrand"