比較字符串不適用於變量嗨,我在Mac上使用的是JMP 15。 以下代碼有效:
dt = current data table();
Current Data Table() << Row Selection(
Select where( (:Stat == "Max"), Current Selection( Extend ))
);
但這不是:
dt = current data table();
Current Data Table() << Row Selection(
var = "Max"
Select where( (:Stat == var), Current Selection( Extend ))
);
有人可以解釋第二個問題是什麼嗎?
腳本編寫回复:比較字符串不適用於變量嘗試將var =“ Max”移到<< << Row Selection()之外。 並增加缺失;
回复:比較字符串不適用於變量不變(感謝您的回复)。
回复:比較字符串不適用於變量好的,我解決了。 這是缺少的東西:
(:Stat == (myStat))
因此,變量必須在兩個括號內!