你好,
我正在開發一個腳本,它將遍歷我的數據表中的列,並將基於一組特定的值標籤應用一個超類別。 (價值標籤({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} )}));