你好,
我正在开发一个脚本,它将遍历我的数据表中的列,并将基于一组特定的值标签应用一个超类别。 (价值标签({0 =“差”,25 =“一般”,50 =“好”,75 =“非常好”,100 =“优秀”}))
我需要帮助在下面的非工作代码中正确使用语法。 我也附上了一些测试数据。 提前致谢。
Names Default To Here( 1 );
// Specify the column name
columnName = "36/5. Considering everything about the brand you use most often, how would you rate it overall?";
// Get the column reference
col = Column(columnName);
//test to see if the value labels contain 100 = "Excellent" and if so, apply a supercategory
if (Get Value Labels(col)["100"] == "Excellent",
col << Set Property( "Supercategories", {Group( "Top 2", {75,100} ), Group( "Bottom 2", {25,0} )}));