{ Analytica Model MultiTable_or_SubTab, encoding="UTF-8" } SoftwareVersion 6.2.0 { System Variables with non-default values: } SampleSize := 1000 TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 {!-50299|DiagramColor Model: 65535,65535,65535} {!-50299|DiagramColor Module: 65535,65535,65535} {!-50299|DiagramColor LinkModule: 65535,65535,65535} {!-50299|DiagramColor Library: 65535,65535,65535} {!-50299|DiagramColor LinkLibrary: 65535,65535,65535} {!-50299|DiagramColor Form: 65535,65535,65535} NodeInfo FormNode: 1,0,0,,0,0,,,,0,,,0 {!-50299|NodeColor Text: 62258,62258,62258} {!-60000|Attribute AcpStyles} AskAttribute TableCellDefault,Variable,Yes Model MultiTable_or_SubTab Title: MultiTable or SubTable? Description: An example where SubTable is the correct choice, rather than MultiTable, because the source index does not appear in the result. Author: Dale Rice~ Lumina Decision Systems Date: Tue, Feb 7, 2023 8:44 AM DiagState: 2,0,0,1048,555,17,10 FontStyle: Arial,15 FileInfo: 0,Model MultiTable_or_SubTab,2,2,0,0,W:\TestModels\MultiTable or SubTable.ana Variable Whites_move Title: White's move Definition: Table(Move_num)('e4','Kf3','Bc4',Null,Null) NodeLocation: 144,64,1 NodeSize: 64,24 DefnState: 2,53,756,416,303,0,DFNM TableCellDefault: Null {!40300|WarnUndefCell: 0} {!40700|Att_CellFormat: CellEntry(0,0,1,1,0)} {!60005|Att_AttsToShow: Attribute TableCellDefault} Index Move_num Title: Move num Definition: 1..5 NodeLocation: 144,168,1 NodeSize: 64,24 Variable Blacks_move Title: Black's move Definition: Table(Move_num)('e5','Kc6',Null,Null,Null) NodeLocation: 288,64,1 NodeSize: 64,24 DefnState: 2,518,776,416,303,0,DFNM TableCellDefault: Null {!40300|WarnUndefCell: 0} {!40700|Att_CellFormat: CellEntry(0,0,1,1,0)} {!60005|Att_AttsToShow: Attribute TableCellDefault} Index Turn Title: Turn Definition: CopyIndex( ConcatRows( Move_num & Side, Move_num, Side ) ) NodeLocation: 144,232,1 NodeSize: 64,24 ValueState: 2,383,734,416,303,,MIDM Variable Move_sequence Title: Move sequence Definition: SubTable( If Mod(@Turn,2)=1 then Whites_move[Move_num=Move_num_of_turn] else Blacks_move[Move_num=Move_num_of_turn] ) NodeLocation: 360,240,1 NodeSize: 64,24 DefnState: 2,392,759,416,303,0,DFNM Aliases: FormNode Fo894477283 TableCellDefault: null {!40700|Att_CellFormat: CellEntry(0,0,1,1,0)} FormNode Fo894477283 Title: The moves Definition: 0 NodeLocation: 568,232,1 NodeSize: 104,16 Original: Move_sequence Variable Move_num_of_turn Title: Move num of turn Definition: Ceil(@Turn/2) NodeLocation: 160,376,1 NodeSize: 64,24 ValueState: 2,414,773,416,303,,MIDM Variable Move_table Title: Move table Definition: MultiTable(Side)(Whites_move,Blacks_move) NodeLocation: 360,168,1 NodeSize: 64,24 Aliases: FormNode Fo1592304611 Index Side Title: Side Definition: ['W','B'] NodeLocation: 144,296,1 NodeSize: 64,24 FormNode Fo1592304611 Title: Structured turns Definition: 0 NodeLocation: 568,168,1 NodeSize: 104,16 Original: Move_table Close MultiTable_or_SubTab