{ From user David, Model Table_examples at 11-Mar-2013 2:53:52 PM }
SoftwareVersion 4.4.4
{ System Variables with non-default values: }
TypeChecking := 1
Checking := 1
SaveOptions := 2
SaveValues := 0
{!40300|Sys_DomainSelfIndex := 1}
{!40400|Sys_AllNullTreatment := 1}
{!-40203|Attribute CloudPlayerStyles}
Attribute Prev_attribute
AskAttribute Prev_attribute,Function,Yes
AskAttribute Prev_attribute,Module,Yes
AskAttribute Prev_attribute,Variable,Yes
Model Table_examples
Title: Array Examples
Description: The examples in this model demonstrate the basics of working with multidimensional arrays.~
~
To easily find a particular example, click the "Outline" button in the tool palette. This displays all the examples in a neat, hierarchical outline.
Author: Mike Steele
Date: Thu, Dec 28, 1995 10:34 PM
SaveAuthor: David
SaveDate: Mon, Mar 11, 2013 2:53 PM
DefaultSize: 44,20
DiagState: 2,42,47,1021,283,3
WindState: 1,60,63
FontStyle: Arial, 12
FileInfo: 0,Model Table_examples,2,2,0,0,C:\Documents and Settings\David\Desktop\work\AWP Enhancements test script\ER13447.ana
{!40400|CloudPlayerStyles: show_as_tab:no~
show_outline:no~
show_tabs:no~
show_parent_diagram_button:no~
Navigation_style:top_tabs}
{!40204-40399|AWP_Attrib:show_as_tab:no~
show_outline:no~
show_tabs:no~
show_parent_diagram_button:no~
Navigation_style:top_tabs}
{!40400|Att_clearTypeFonts: 0}
Module Calculating
Title: Calculating with arrays
Description: The examples in this module demonstrate calculations with arrays. In particular, they demonstrate how the indexes for the resulting array are determined.
Author: Mike Steele
Date: Wed, Jan 10, 1996 1:37 AM
DefaultSize: 44,20
NodeLocation: 176,128,1
NodeSize: 105,20
DiagState: 1,60,63,437,349,3
WindState: 1,80,79
Index X
Title: X
Description: A sample index for this example. The values are arbitrary.
Definition: [2,3,4]
NodeLocation: 64,104
NodeSize: 32,8
WindState: 1,80,79
ValueState: 1,82,79,201,174,0,MIDM
Variable Array_arith_1
Title: Array arithmetic~
Example 1
Description: An arithmetic operator applied to a scalar and an array results in an array of the same shape, applying the scalar operation to each element in the array.~
~
In this example, every element of the index "X" is squared and multiplied with 10. The result is "40, 90, 160".
Definition: 10 * X ^ 2
NodeLocation: 176,80
NodeSize: 56,20
WindState: 1,80,79
ValueState: 1,82,79,284,194,0,MIDM
Variable Array_arith_2
Title: Array arithmetic~
Example 2
Description: An arithmetic operator applied to two arrays that are both indexed by the same variable creates another array indexed by the same variable with the operator applied to pairs of corresponding elements.~
~
In this example, every element of the index "X" is added with the square of that element. The result is "6, 12, 20".
Definition: (X + Sqr(X))
NodeLocation: 176,136
NodeSize: 56,20
WindState: 1,81,79
ValueState: 1,80,79,274,189,0,MIDM
Variable Array_arith_3
Title: Array arithmetic~
Example 3
Description: An arithmetic operator applied to two arrays with different index variables (or with no index variables) creates an array indexed by every index variable in the two arrays, with the operator applied to all pairs of elements.~
~
In this example, every possibility for inflation is multiplied with every possibility for price. Therefore, the resulting array has nine entries.
Definition: (Inflation*Price1)
NodeLocation: 176,188
NodeSize: 56,20
WindState: 1,80,79
ValueState: 1,82,79,320,173,0,MIDM
ReformVal: [Inflation,Price1]
NumberFormat: 1,D,2,2,0,0
Index Inflation
Title: Inflation
Description: Three possibilities for inflation rate.
Definition: [1.05, 1.10, 1.15]
NodeLocation: 64,168
NodeSize: 32,8
WindState: 1,80,78
ValueState: 1,80,79,235,184,0,MIDM
NumberFormat: 1,F,4,2,0,0
Index Price1
Title: Price
Units: $
Description: Three possibilites for price.
Definition: [5000,10K,15K]
NodeLocation: 64,216
NodeSize: 32,8
WindState: 1,80,79
ValueState: 1,79,79,212,178,0,MIDM
NumberFormat: 1,D,2,2,0,0
Index From_1_to_5
Title: 1 to 5
Description: The numbers 1, 2, 3, 4, and 5.
Definition: Sequence( 1, 5, 1 )
NodeLocation: 64,32
NodeSize: 28,8
ValueState: 1,83,78,224,210,0,MIDM
Variable Math_function_ex
Title: Square root~
Example
Description: Any of the standard math functions that take a single parameter can be applied to an array, resulting in an array of the same shape. Each element of the resulting array is calculated by applying the function to the corresponding element of the input array.~
~
In this example, the result is the square roots for the numbers between 1 and 5.
Definition: Sqrt(From_1_to_5)
NodeLocation: 176,32
NodeSize: 56,20
WindState: 1,83,78
ValueState: 1,82,78,257,220,0,MIDM
NumberFormat: 1,F,4,6,0,0
Module Iarray_example
Title: Intelligent array example
Description: A module calculating the cost of running a car.~
~
Maintenance cost and Fuel price are defined as arrays indexed by Car Type (a two-element list). Fuel cost and Total cost evaluate to arrays that are also indexed by Car Type, because they are computed from variables defined as arrays.
Author: Lynda Korsan
Date: Mon, Jan 22, 1996 12:16 PM
SaveAuthor: lynda
SaveDate: Mon, Jan 22, 1996 12:34 PM
NodeLocation: 192,304
NodeSize: 84,20
DiagState: 1,118,90,407,255,17
WindState: 1,77,78
Variable Fuel_cost
Title: Fuel cost
Units: $/year
Description: Annual cost of fuel.~
~
Because one of the inputs, Mpg, is a one-dimensional array, this variable also results in a one-dimensional array indexed by the car type.
Definition: ((Price*Mpy)/Mpg2)
NodeLocation: 184,112
NodeSize: 44,20
ValueState: 1,80,77,288,190,0,MIDM
Variable Price
Title: Fuel~
price
Units: $
Description: Price of a gallon of gasoline.
Definition: 1.19
NodeLocation: 72,56
NodeSize: 44,20
WindState: 1,78,78
ValueState: 1,78,77,258,159,0,MIDM
Variable Mpy
Title: Miles per year
Units: miles/year
Description: Average miles driven per year.~
~
Since this value is the same for both types of car, it is a single scalar value and not an array.
Definition: 12K
NodeLocation: 72,168
NodeSize: 44,20
WindState: 1,78,78
ValueState: 1,78,78,269,159,0,MIDM
Variable Mpg2
Title: Miles per gallon
Units: miles/gallon
Description: Average fuel efficiency, in number of miles per gallon.~
~
The fuel efficiency differs for different car types. So, this is a one-dimensional array indexed by the "Car Type" index. That means there is one value in this array for each value in the "Car Type" index.
Definition: Table(Car_type2)(~
20,30)
NodeLocation: 72,112
NodeSize: 44,20
WindState: 1,78,77
ValueState: 1,78,77,278,183,0,MIDM
Variable Maintenance_cost
Title: Maintenance cost
Units: $/year
Description: Annual car maintenance costs such as oil changes.~
~
These costs differ for different car types. So, this is a one-dimensional array indexed by the "Car Type" index. That means there is one value in this array for each value in the "Car Type" index.
Definition: Table(Car_type2)(~
1200,2400)
NodeLocation: 184,40
NodeSize: 44,20
WindState: 1,78,77
ValueState: 1,79,78,329,185,0,MIDM
Objective Total_cost
Title: Total cost
Units: $/year
Description: Total annual cost of driving and maintaining a car.~
~
Because both of the inputs are one-dimensional arrays indexed by car type, this variable also results in a one-dimensional array indexed by the car type.
Definition: Fuel_cost+Maintenance_cost
NodeLocation: 288,72
NodeSize: 44,20
WindState: 1,77,78
ValueState: 1,79,77,291,185,0,MIDM
Index Car_type2
{!40000|Att_PrevIndexValue: ['red car','blue car']}
Title: Car Type
Description: Type of car owned.~
~
This index is common to all the arrays in this module.
Definition: ['red car','blue car']
NodeLocation: 216,192
NodeSize: 44,20
WindState: 1,79,78
ValueState: 1,79,77,246,185,0,MIDM
Close Iarray_example
Module Operation_examples
Title: Operation examples
Description: This module contains examples of arithmetic operations on a list, arrays with a common index, arrays with different indexes, and arrays with mixed indexes.
Author: lynda
Date: Thu, Apr 25, 1996 1:21 PM
NodeLocation: 192,248
NodeSize: 84,20
DiagState: 1,70,49,416,344,17
Index Car_type
{!40000|Att_PrevIndexValue: ['VW','Honda','BMW']}
Title: Car type
Description: Model of car.
Definition: ['VW','Honda','BMW']
NodeLocation: 72,32
NodeSize: 28,16
Variable Last_year_ranking
Title: Last year ranking
Description: Last year's ranking of quality
Definition: Table(Car_type)(~
6.5,7.3,8.6)
NodeLocation: 192,32
NodeSize: 44,20
ValueState: 1,40,50,247,142,0,MIDM
Variable Adjusted_rank
Title: Adjusted rank
Description: Last year's ranking is adjusted by a factor.
Definition: Last_year_ranking*1.5
NodeLocation: 312,32
NodeSize: 44,20
ValueState: 1,152,162,247,142,0,MIDM
NumberFormat: 1,F,4,2,0,0
Variable This_year_ranking
Title: This year ranking
Description: This year's ranking of quality
Definition: Table(Car_type)(~
6.3,7.6,9)
NodeLocation: 192,88
NodeSize: 44,20
ValueState: 1,56,66,247,142,0,MIDM
Variable Average_ranking
Title: Average ranking
Description: The average of last year's and this year's rankings.
Definition: (Last_year_ranking+This_year_ranking)/2
NodeLocation: 312,88
NodeSize: 44,20
ValueState: 1,136,146,247,142,0,MIDM
NumberFormat: 1,F,4,2,0,0
Index Years
{!40000|Att_PrevIndexValue: [1985,1986,1987,1988]}
Title: Years
Description: The years of interest.
Definition: [1985,1986,1987,1988]
NodeLocation: 72,160
NodeSize: 28,16
Variable Safety_factor
Title: Safety factor
Definition: Table(Years)(~
1,1.1,1.2,1.4)
NodeLocation: 192,160
NodeSize: 44,20
Variable Adjusted_safety
Title: Adjusted safety
Definition: This_year_ranking*Safety_factor
NodeLocation: 320,160
NodeSize: 44,20
ValueState: 1,56,66,416,303,0,MIDM
ReformVal: [Years,Car_type]
NumberFormat: 1,F,4,2,0,0
Index Mpg
{!40000|Att_PrevIndexValue: [26,30,35]}
Title: Mpg
Definition: [26,30,35]
NodeLocation: 72,248
NodeSize: 28,16
Variable Cost
Title: Cost
Definition: Table(Car_type,Mpg)(~
2185,1705,1585,~
2810,2330,2210,~
3435,2955,2835~
)
NodeLocation: 192,216
NodeSize: 44,20
DefnState: 1,136,146,275,142,0,MIDM
ValueState: 1,88,98,271,142,0,MIDM
ReformDef: [Car_type,Mpg]
ReformVal: [Car_type,Mpg]
Variable Car_prices
Title: Car prices
Definition: Table(Car_type,Years)(~
8000,9000,9500,10K,~
12K,13K,14K,14.5K,~
18K,20K,21K,22K~
)
NodeLocation: 192,272
NodeSize: 44,20
ValueState: 1,104,114,335,142,0,MIDM
ReformDef: [Years,Car_type]
ReformVal: [Years,Car_type]
Variable Adjusted_cost
Title: Adjusted cost
Description: This node is an example of an operation on two arrays (tables) having one index in common and other indexes not in common. The result of this node is indexed by the union of the indexes of the inputs.
Definition: (Cost + Car_prices)/5
NodeLocation: 320,240
NodeSize: 44,20
ValueState: 1,72,82,335,161,0,MIDM
ReformVal: [Years,Car_type]
Close Operation_examples
Close Calculating
Module Comparison_and_logic
Title: Comparison and logical operators
Description: The examples in this module demonstrate how Analytica's comparison operators (<, ², >, ³, =, ) and logical operators (or, and, not) work with arrays. The resulting array is always indexed by every index of every input.
Author: Mike Steele
Date: Wed, Jan 10, 1996 1:38 AM
DefaultSize: 44,20
NodeLocation: 176,176,1
NodeSize: 105,20
DiagState: 1,61,63,375,231,3
WindState: 1,81,79
Variable Vw_price
Title: Vw_price
Units: $
Description: Three possibilities for the price of a Volkswagon
Definition: [8250,10K,15K]
NodeLocation: 96,72
NodeSize: 44,12
WindState: 1,83,79
ValueState: 1,82,79,253,184,0,MIDM
Variable Honda_price
Title: Honda_price
Units: $
Description: Three possibilities for the price of a Honda.
Definition: [12.5K,15K,20K]
NodeLocation: 96,128
NodeSize: 44,12
WindState: 1,82,78
ValueState: 1,82,79,270,187,0,MIDM
Variable Comparison_example_1
Title: Array comparison~
Example 1
Description: A comparison applied to two arrays results in a Boolean array indexed by every index in the two original arrays.~
~
In this example, every possible Honda price is compared with every possible Volkswagon price. A "1" means the comparison is true (that is, the Honda price is greater than the Volkswagon price) and a "0" means the comparison is false (that is, the Honda price is not greater than the Volkswagon price).~
~
With the result window for this variable open, select "Number Format..." from the "Result" menu. Then choose the "boolean" format. This displays all the comparison results as "true" or "false" rather than as integers.
Definition: Honda_price > Vw_price
NodeLocation: 256,48
NodeSize: 56,24
WindState: 1,82,79
ValueState: 1,82,79,327,182,0,MIDM
ReformVal: [Honda_price,Vw_price]
Variable Comparison_example_2
Title: Array comparison~
Example 2
Description: A comparison applied to two arrays results in a Boolean array indexed by every index in the two original arrays.~
~
In this example, every possible Honda price is compared with every possible Volkswagon price. A "1" means the comparison is true (that is, the prices are equal) and a "0" means the comparison is false (that is, the prices are not equal).~
~
With the result window for this variable open, select "Number Format..." from the "Result" menu. Then choose the "boolean" format. This displays all the comparison results as "true" or "false" rather than as integers.
Definition: (Honda_price = Vw_price)
NodeLocation: 256,104
NodeSize: 56,24
WindState: 1,83,79
ValueState: 1,81,78,327,182,0,MIDM
ReformVal: [Honda_price,Vw_price]
Variable Comparison_example_3
Title: Array comparison~
Example 3
Description: A comparison or logical operator applied to two arrays results in a Boolean array indexed by every index in the two original arrays.~
~
In this example, every possible Honda price is compared with every possible Volkswagon price. A "1" means the comparison is true (that is, the Honda price is greater than or equal to the Volkswagon price) and a "0" means the comparison is false (that is, the Honda price is not greater than or equal to the Volkswagon price).~
~
With the result window for this variable open, select "Number Format..." from the "Result" menu. Then choose the "boolean" format. This displays all the comparison results as "true" or "false" rather than as integers.
Definition: (Honda_price > VW_price OR Honda_price = Vw_price)
NodeLocation: 256,160
NodeSize: 56,24
WindState: 1,83,78
ValueState: 1,82,79,327,182,0,MIDM
ReformVal: [Honda_price,Vw_price]
Close Comparison_and_logic
Module Conditional_ops
Title: Conditional operators
Description: The examples in this module demonstrate how the conditional operators (if-then-else, ifall-then-else) work with arrays. In particular, they demonstrate the subtle difference between the two— they return different results when the array being checked is either all true (filled with 1's) or all false (filled with 0's). Otherwise, they return the same thing.
Author: Mike Steele
Date: Wed, Jan 10, 1996 1:38 AM
DefaultSize: 44,20
NodeLocation: 176,224,1
NodeSize: 105,20
DiagState: 1,61,63,447,301,3
WindState: 1,83,79
Index In1
{!40000|Att_PrevIndexValue: [11,12]}
Title: In1
Description: An index of two arbitrary numbers.
Definition: [11,12]
NodeLocation: 64,40
NodeSize: 32,8
WindState: 1,82,79
ValueState: 1,81,79,203,162,0,MIDM
Index In2
{!40000|Att_PrevIndexValue: [21,22,23]}
Title: In2
Description: An index of three arbitrary numbers.
Definition: [21,22,23]
NodeLocation: 64,136
NodeSize: 32,8
WindState: 1,83,79
ValueState: 1,81,79,191,172,0,MIDM
Variable Alltrue
Title: AllTrue
Description: All six entries of this array are true (that is, they are "1").
Definition: Table(In1,In2)(~
1,1,1,~
1,1,1~
)
NodeLocation: 200,40
NodeSize: 32,8
WindState: 1,83,79
ValueState: 1,81,79,269,185,0,MIDM
ReformDef: [In1,In2]
ReformVal: [In1,In2]
Variable Allfalse
Title: AllFalse
Description: All six entries of this array are false (that is, they are "0").
Definition: Table(In1,In2)(~
0,0,0,~
0,0,0~
)
NodeLocation: 200,136
NodeSize: 32,8
WindState: 1,83,79
ValueState: 1,82,79,269,185,0,MIDM
ReformDef: [In1,In2]
ReformVal: [In1,In2]
Variable Mixed
Title: Mixed
Description: Some of the entries of this array are true (that is, they are "1") and other entries are false (that is, they are "0").
Definition: Table(In1,In2)(~
1,0,1,~
0,1,0~
)
NodeLocation: 200,232
NodeSize: 32,8
WindState: 1,80,80
ValueState: 1,82,79,269,185,0,MIDM
ReformDef: [In1,In2]
ReformVal: [In1,In2]
Variable If_then_else_ex1
Title: If-then-else~
Example 1
Description: "If B then U else V" returns U if every element of B is true, V if every element of B is false, or an array filled with U's and V's if some elements of B are true and others are false.~
~
In this example, every element of "Alltrue" is true, so the whole expression results in 'X'.~
~
Compare with "Ifall-then-else example 1", which results in an array with many 'X' elements.
Definition: If Alltrue Then X_array Else Y_array
NodeLocation: 336,24
NodeSize: 52,16
WindState: 1,81,79
ValueState: 1,84,79,255,168,0,MIDM
Variable If_then_else_ex2
Title: If-then-else~
Example 2
Description: "If B then U else V" returns U if every element of B is true, V if every element of B is false, or an array filled with U's and V's if some elements of B are true and others are false.~
~
In this example, every element of "Allfalse" is false, so the whole expression results in 'Y'. ~
~
Compare with "Ifall-then-else example 2", which results in an array with many 'Y' elements.
Definition: (If Allfalse Then X_array Else Y_array)
NodeLocation: 336,120
NodeSize: 52,16
WindState: 1,82,79
ValueState: 1,81,79,247,162,0,MIDM
Variable If_then_else_ex3
Title: If-then-else~
Example 3
Description: "If B then U else V" returns U if every element of B is true, V if every element of B is false, or an array filled with U's and V's if some elements of B are true and others are false.~
~
In this example, some elements of "Mixed" are true and others are false, so the whole expression results in an array filled with X's and Y's. There is an "X" for every element where "Mixed" is true and a "Y" for every element where "Mixed" is false.~
~
Compare with "Ifall-then-else example 3", which results in the same array!
Definition: (If Mixed Then X_array Else Y_array)
NodeLocation: 336,216
NodeSize: 52,16
WindState: 1,82,79
ValueState: 1,84,79,268,212,0,MIDM
ReformVal: [In1,In2]
Variable Ifall_then_else_ex1
Title: Ifall-then-else~
Example 1
Description: "Ifall B then U else V" returns an array filled with the values of U and V depending on the value of B. The array returned always has the same number of elements as B.~
~
In this example, every element of "Alltrue" is true, so the whole expression results in array with many 'X' elements.~
~
Compare with "If-then-else example 1", which results in a single 'X'.
Definition: (Ifall Alltrue Then X_array Else Y_array)
NodeLocation: 336,64
NodeSize: 52,16
WindState: 1,81,79
ValueState: 1,85,79,260,212,0,MIDM
ReformVal: [In1,In2]
Variable Ifall_then_else_ex2
Title: Ifall-then-else~
Example 2
Description: "Ifall B then U else V" returns an array filled with the values of U and V depending on the value of B. The array returned always has the same number of elements as B.~
~
In this example, every element of "Allfalse" is false, so the whole expression results in array with many 'Y' elements.~
~
Compare with "If-then-else example 2", which results in a single 'Y'.
Definition: (Ifall Allfalse Then X_array Else Y_array)
NodeLocation: 336,160
NodeSize: 52,16
WindState: 1,83,79
ValueState: 1,84,79,263,209,0,MIDM
ReformVal: [In1,In2]
Variable Ifall_then_else_ex3
Title: Ifall-then-else~
Example 3
Description: "Ifall B then U else V" returns an array filled with the values of U and V depending on the value of B. The array returned always has the same number of elements as B.~
~
In this example, some elements of "Mixed" are true and others are false, so the whole expression results in an array filled with X's and Y's. There is an "X" for every element where "Mixed" is true and a "Y" for every element where "Mixed" is false.~
~
Compare with "If-then-else example 1", which results in the same array!
Definition: (Ifall Mixed Then X_array Else Y_array)
NodeLocation: 336,256
NodeSize: 52,16
WindState: 1,82,78
ValueState: 1,82,79,268,212,0,MIDM
ReformVal: [In1,In2]
Variable X_array
Title: X_array
Description: An array with just one element: "X".
Definition: Table(Self)(~
'X')
IndexVals: ['item 1']
NodeLocation: 64,216
NodeSize: 32,8
NodeInfo: 1,1,0,1,1,1,0,,0
WindState: 1,82,79
ValueState: 1,82,79,218,157,0,MIDM
Variable Y_array
Title: Y_array
Description: An array with just one element: "Y".
Definition: Table(Self)(~
'Y')
IndexVals: ['item 1']
NodeLocation: 64,248
NodeSize: 32,8
NodeInfo: 1,1,0,1,1,1,0,,0
WindState: 1,82,79
ValueState: 1,83,79,218,155,0,MIDM
Close Conditional_ops
Module Introtoarrays
Title: Intro to Arrays
Description: An example of two indexes and a two-dimensional array.
Author: Mike Steele
Date: Sun, Jan 21, 1996 11:37 PM
DefaultSize: 44,20
NodeLocation: 175,32,1
NodeSize: 105,20
DiagState: 2,58,62,772,495,19
WindState: 1,77,78
Index House_size
{!40000|Att_PrevIndexValue: ['Small','Large']}
Title: House size
Description: A list to differentiate small and large houses.
Definition: ['Small','Large']
NodeLocation: 72,56
NodeSize: 44,20
Index House_location
{!40000|Att_PrevIndexValue: ['City','Suburbs','Rural']}
Title: House location
Description: A list of three possible locations for a house.
Definition: ['City','Suburbs','Rural']
NodeLocation: 72,128
NodeSize: 44,20
Variable Bprice
Title: Buying Price
Units: $K
Description: Total price of house (including closing costs)
Definition: Table(House_size,House_location)(~
300K,250K,100K,~
700K,450K,250K~
)
NodeLocation: 216,80
NodeSize: 44,20
ValueState: 1,152,162,262,142,0,MIDM
ReformDef: [House_size,House_location]
ReformVal: [House_size,House_location]
Close Introtoarrays
Module List_displays
Title: List displays
Description: The examples in this module demonstrate the two types of list: list (of numbers) and list of labels. Both numbers and text strings can be elements of either type of list, but are treated differently in each.
Author: Mike Steele
Date: Tue, Jan 9, 1996 11:47 PM
DefaultSize: 48,24
NodeLocation: 175,80,1
NodeSize: 105,20
DiagState: 1,62,67,375,303,17
WindState: 1,82,82
Variable List_of_numbers
Title: List of numbers
Description: In a list of numbers (usually called simply a list), each value is a number or an expression that evaluates to a number. So this sequence of five integers is a list. ~
~
Notice that none of the items in the list are contained in single quotes, even if you select "expression" for the definition view.
Definition: [1,2,3,4,5]
NodeLocation: 176,48
NodeSize: 96,20
WindState: 1,80,84
ValueState: 1,82,83,214,217,0,MIDM
Variable List_of_labels
Title: List of labels
Description: In a list of labels (or text strings), each value is textual and does not evaluate to a number. For example, this set of states is a list of labels.~
~
Notice that in "list of labels" view, none of the items are contained in single quotes. But if you switch the definition view to "list" view or "expression" view, the items will be contained in single quotes.
Definition: ['Alabama','Alaska','Arizona','Arkansas']
NodeLocation: 176,112
NodeSize: 96,20
WindState: 1,80,83
ValueState: 1,83,83,214,196,0,MIDM
Variable Mixed_list_list
Title: Mixed list of numbers and text~
(in "list" view)
Description: A list can include a mix of cells containing text and numbers.~
~
The definition of this example is in "list" view. The text is contained in single quotes. The numbers, however, are not in quotes and are treated like numbers. If you switch the definition view to "expression" view, the text is still in quotes and the numbers are not.~
~
Compare this example to the example of mixed numbers and labels in "list of labels" view.
Definition: [1,'Alabama',2,'Alaska']
NodeLocation: 176,176
NodeSize: 96,20
WindState: 1,82,83
ValueState: 1,83,83,444,199,0,MIDM
Variable Mixed_list_labels
Title: Mixed list of numbers and text~
(in "list of labels" view)
Description: A list can include a mix of cells containing text and numbers.~
~
The definition of this example is in "list of labels" view. Notice that both text and numbers are treated as text strings. If you switch the definition view to "list" view, both text and numbers are contained in single quotes.~
~
Compare this example to the example of mixed numbers and labels in "list" view.
Definition: ['1','Alabama','2','Alaska']
NodeLocation: 176,240
NodeSize: 96,20
WindState: 1,82,82
ValueState: 1,84,83,479,200,0,MIDM
Close List_displays
Close Table_examples