如何將單個值寫入全局宏變量(腳本)我知道一種簡單的方法是:
我的變量= 123; [向 Tx 致敬!]
我想做的是根據條件自動將單個值寫入全局宏變量,例如:
my_var2= (數字,連續,公式(if(:Condition1=="yes" & :Condition2 ==23.4, :SourceValue"));
將具有 Condition1="yes" 和 Condition2=23.4 的 SourceValue 值寫入全局宏 var MY_VAR2。
我感謝每一個指針!
回复:如何將單個值寫入全局宏變量(腳本)這是一種方法來做你正在尋找的
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// Get Rows Where, returns a matrix of all rows that meet the criteria,
// so one needs to select the 1st matrix element
my_var = :weight[(dt << get rows where( :sex == "F" & :height == 66 ))[1]];