How do I insert Multiple Values to Associative ArrayHi,
I'm trying to create an array that sets multiple values to one object:
Is there any way to do this? What I'm trying to do is set if users choose "B", then Both "X" and "." get chosen. Can anyone help?
Array = Associative Array( {"A", "B"}, { "X", "X AND ."});
Advanced Statistical ModelingConsumer and Market ResearchRe: How do I insert Multiple Values to Associative ArrayYou could use a list (or another associative array) as the value
Names Default To Here(1);
aa = Associative Array({"A", "B"}, {"A", {"X", "."}});
show(aa);
aa = .;
aa = Associative Array();
aa["A"] = "X";
aa["B"] = {"X", "."};
show(aa);
aa = .;
aa = [
"A" => "X",
"B" => {"X", "."}
];
show(aa);